sc::SCException(3)
π sc::SCException(3) π
okay so bestie, you're reading the manual page for sc::SCException from MPQC, and honestly? this one is lowkey the emotional support exception of the whole library. let's get into it β¨
πΈ NAME πΈ
sc::SCException β it's a std::exception specialization that literally records the info about where an exception went down. like a little receipt for your crash, no cap π§Ύπ
β¨ SYNOPSIS β¨
#include <scexception.h>
Inherits exception.
Inherited by sc::AlgorithmException, sc::InputError, sc::LimitExceeded<T>, sc::ProgrammingError, and sc::SystemException. she's the mother of them all, fr fr π
π Public Member Functions π
SCException(const char *description=0, const char *file=0, int line=0, const ClassDesc *class_desc=0, const char *exception_type='SCException')throw()β the main constructor, defaults and all, exactly as written πSCException(const SCException &)throw()β copy constructor, because sometimes one exception just needs a twin π«Άconst char *what() constthrow()β reimplementation ofstd::exception::what()const char *description() constthrow()β hands you the description stringconst char *file() constthrow()β tells you which file the drama happened inint line() constthrow()β gives you that line number β¨const ClassDesc *class_desc() constthrow()β returns the class description pointerconst char *exception_type() constthrow()β tells you what kind of exception this isstd::ostream &elaborate()β returns a stream where you can write additional info about the exception π
π¦ Detailed Description π¦
this is a std::exception specialization that records information about where an exception took place. that's it, that's the vibe. she's iconic for it, periodt π
π Member Function Documentation π
β std::ostream& sc::SCException::elaborate()
returns a stream where addition information about the exception can be written. heads up though β this will throw if a valid stream cannot be returned (possibly due to low memory). so like, respect the memory situation bestie π
β const char* sc::SCException::what() const
reimplementation of std::exception::what(). the returned std::string is only valid for the lifetime of this object β do not go holding onto it after the object dips, that's giving undefined behaviour energy π
π Author π
Generated automatically by Doxygen for MPQC from the source code. so nobody actually hand-wrote this one, the robots ate π€β¨
ok that's the whole page bestie, every flag, every signature, every warning β nothing skipped, nothing invented π«Ά
π sign-off time: this was Version 2.3.1, dated Sun Oct 4 2020, and it's sc::SCException(3) all day every day. slay ππΈ
π¦ where this page comes from
- ubuntu jammy: libsc-doc 2.3.1-21
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms