![]() |
Elementa v8.0.0
Minimalistic library for any C++ application (C++11 and up)
|
Enhancing run-time errors with two kinds of them: Exceptions (critical errors to be produced only while debugging code) and Errors (to be produced in production to indicate something to the user).

Classes | |
| class | elementa::base::Exc |
| Base class for all errors / exceptions in Elementa. Just derive from it. More... | |
| class | elementa::base::unimplemented |
| Exception for indicating in runtime that a section of code is unimplemented. More... | |
| class | elementa::base::todo |
| Exception for indicating in runtime that a section of code is TODO. More... | |
| class | elementa::base::notreach |
| Exception for indicating in runtime that a code should not be reached. More... | |
| class | elementa::base::invstate |
| Exception for indicating that some object is in invalid state. More... | |
| class | elementa::base::internal_error |
| Exception for indicating some internal error not caused by user of object. More... | |
| class | elementa::base::notfound |
| Exception for indicating that some element has not been found in some place. More... | |
| class | elementa::base::invarg |
| Exception for indicating that some argument of a method/function is invalid. More... | |
| class | elementa::base::outofrange |
| Exception for indicating that some value is out of range. More... | |
Macros | |
| #define | ELE_CLASS_EXCOVERRIDE(C) |
| Shortening macro that must be used inside classes derived from Exc. More... | |
| #define | ELE_CODE_UNIMPLEMENTED |
| To throw an unimplemented exception. More... | |
| #define | ELE_CODE_TODO(expl) |
| To throw a TODO exception. More... | |
| #define | ELE_CODE_NOTREACH |
| To throw a should-not-reach-here exception. More... | |
| #define | ELE_CODE_INTERNALERR(expl) |
| To throw an internal-error exception with an explanation. More... | |
| #define | ELE_CODE_INVSTATE(expl) |
| To throw an invalid-state exception with an explanation. More... | |
| #define | ELE_CODE_INVARG(expl) |
| To throw an invalid-argument exception with an explanation. More... | |
| #define | ELE_CODE_OUTOFRANGE(expl) |
| To throw an out-of-range exception with an explanation. More... | |
| #define | ELE_CODE_NOTFOUND(expl) |
| To throw a not-found exception with an explanation. More... | |
| class elementa::base::Exc |
Base class for all errors / exceptions in Elementa. Just derive from it.
The mandatory data contained in an exception is the explanation (string), and, if thrown as an EXC, the place where it is thrown + some flags indicating whether to add more info, while if it is thrown as an ERR, the context where it is thrown. Derived classes can add their own data. These exceptions can be concatenated through the chainTo() method. Use cases:
If an exception is thrown without calling the .asERR() method or the .asEXC() method, it is called in EXC mode with place empty. You can catch a derived exception (by their class name) or the base one, or even the std::runtime_error from which all of them derive, if you wish.
Definition at line 112 of file exceptions.h.


Public Types | |
Types, consts., etc. | |
| using | StdBase = std::runtime_error |
Public Member Functions | |
Constructors | |
| Exc (const std::string &expl) | |
| Constructor from an explanation. To be thrown as EXC by default. More... | |
| Exc (const Exc &)=default | |
| Exc (Exc &&)=default | |
| Exc & | operator= (const Exc &)=default |
| Exc & | operator= (Exc &&)=default |
| virtual | ~Exc (void)=default |
Launching methods | |
| virtual Exc & | asERR (const std::string &context) noexcept |
| Transform it to be thrown as ERR with the given context. More... | |
| virtual Exc & | asEXC (const std::string &place, const RTTextWithEnum::Combination &flags={RTTextWith::kAll_}) noexcept |
| Transform it to be thrown as EXC with the given place and flags. More... | |
Catching methods | |
| const char * | what (void) const noexcept override |
| Return the complete message. It will live as long as this exception. More... | |
| const char * | explanation (void) const noexcept |
| Return the explanation only. It will live as long as this exception. More... | |
| const char * | context (void) const noexcept |
| Return the place (EXC) or context (ERR) only. Will live as long as this. More... | |
| using elementa::base::Exc::StdBase = std::runtime_error |
Definition at line 119 of file exceptions.h.
|
inline |
Constructor from an explanation. To be thrown as EXC by default.
Definition at line 128 of file exceptions.h.
|
virtualnoexcept |
Transform it to be thrown as ERR with the given context.
Reimplemented in elementa::base::unimplemented, elementa::base::todo, elementa::base::notreach, elementa::base::invstate, elementa::base::internal_error, elementa::base::notfound, elementa::base::invarg, and elementa::base::outofrange.
|
virtualnoexcept |
Transform it to be thrown as EXC with the given place and flags.
The flags are explained in debugging.h, runtime_src_place() function.
Referenced by elementa::base::Szer_Char::deser(), and elementa::base::Szer_NatBin< NatType >::deser().
|
inlineoverridenoexcept |
Return the complete message. It will live as long as this exception.
The message will be one-line except if the explanation or place/context contain some CR.
Definition at line 161 of file exceptions.h.
|
inlinenoexcept |
Return the explanation only. It will live as long as this exception.
Definition at line 164 of file exceptions.h.
|
inlinenoexcept |
Return the place (EXC) or context (ERR) only. Will live as long as this.
Definition at line 167 of file exceptions.h.
| class elementa::base::unimplemented |
Exception for indicating in runtime that a section of code is unimplemented.
This way of indicating unimplemented code should not be used in runtime except if it is the only way, i.e., when there is a section of code inside a function of method that otherwise it is implemented. Unimplemented functions or methods should be indicated by declaring them just without body (only their prototype). Unimplemented virtual methods, still, needs this runtime exception solution since, if left prototyped-only, base methods can still be called.
Definition at line 197 of file exceptions.h.


Public Types | |
Types, consts., etc. | |
| using | StdBase = std::runtime_error |
Public Member Functions | |
| unimplemented (const std::string &explanation) | |
| unimplemented & | asERR (const std::string &contxt) noexcept override |
| Transform it to be thrown as ERR with the given context. More... | |
| unimplemented & | asEXC (const std::string &place, const elementa::base::RTTextWithEnum::Combination &fl={elementa::base::RTTextWith::kAll_}) noexcept override |
Launching methods | |
| virtual Exc & | asEXC (const std::string &place, const RTTextWithEnum::Combination &flags={RTTextWith::kAll_}) noexcept |
| Transform it to be thrown as EXC with the given place and flags. More... | |
Catching methods | |
| const char * | what (void) const noexcept override |
| Return the complete message. It will live as long as this exception. More... | |
| const char * | explanation (void) const noexcept |
| Return the explanation only. It will live as long as this exception. More... | |
| const char * | context (void) const noexcept |
| Return the place (EXC) or context (ERR) only. Will live as long as this. More... | |
|
inherited |
Definition at line 119 of file exceptions.h.
|
inline |
Definition at line 201 of file exceptions.h.
|
inlineoverridevirtualnoexcept |
Transform it to be thrown as ERR with the given context.
Reimplemented from elementa::base::Exc.
Definition at line 203 of file exceptions.h.
|
inlineoverridenoexcept |
Definition at line 203 of file exceptions.h.
|
virtualnoexceptinherited |
Transform it to be thrown as EXC with the given place and flags.
The flags are explained in debugging.h, runtime_src_place() function.
Referenced by elementa::base::Szer_Char::deser(), and elementa::base::Szer_NatBin< NatType >::deser().
|
inlineoverridenoexceptinherited |
Return the complete message. It will live as long as this exception.
The message will be one-line except if the explanation or place/context contain some CR.
Definition at line 161 of file exceptions.h.
|
inlinenoexceptinherited |
Return the explanation only. It will live as long as this exception.
Definition at line 164 of file exceptions.h.
|
inlinenoexceptinherited |
Return the place (EXC) or context (ERR) only. Will live as long as this.
Definition at line 167 of file exceptions.h.
| class elementa::base::todo |
Exception for indicating in runtime that a section of code is TODO.
This way of indicating TODO code should not be used in production, just while developing.
Definition at line 209 of file exceptions.h.


Public Types | |
Types, consts., etc. | |
| using | StdBase = std::runtime_error |
Public Member Functions | |
| todo (const std::string &explanation) | |
| todo & | asERR (const std::string &contxt) noexcept override |
| Transform it to be thrown as ERR with the given context. More... | |
| todo & | asEXC (const std::string &place, const elementa::base::RTTextWithEnum::Combination &fl={elementa::base::RTTextWith::kAll_}) noexcept override |
Launching methods | |
| virtual Exc & | asEXC (const std::string &place, const RTTextWithEnum::Combination &flags={RTTextWith::kAll_}) noexcept |
| Transform it to be thrown as EXC with the given place and flags. More... | |
Catching methods | |
| const char * | what (void) const noexcept override |
| Return the complete message. It will live as long as this exception. More... | |
| const char * | explanation (void) const noexcept |
| Return the explanation only. It will live as long as this exception. More... | |
| const char * | context (void) const noexcept |
| Return the place (EXC) or context (ERR) only. Will live as long as this. More... | |
|
inherited |
Definition at line 119 of file exceptions.h.
|
inline |
Definition at line 213 of file exceptions.h.
|
inlineoverridevirtualnoexcept |
Transform it to be thrown as ERR with the given context.
Reimplemented from elementa::base::Exc.
Definition at line 215 of file exceptions.h.
|
inlineoverridenoexcept |
Definition at line 215 of file exceptions.h.
|
virtualnoexceptinherited |
Transform it to be thrown as EXC with the given place and flags.
The flags are explained in debugging.h, runtime_src_place() function.
Referenced by elementa::base::Szer_Char::deser(), and elementa::base::Szer_NatBin< NatType >::deser().
|
inlineoverridenoexceptinherited |
Return the complete message. It will live as long as this exception.
The message will be one-line except if the explanation or place/context contain some CR.
Definition at line 161 of file exceptions.h.
|
inlinenoexceptinherited |
Return the explanation only. It will live as long as this exception.
Definition at line 164 of file exceptions.h.
|
inlinenoexceptinherited |
Return the place (EXC) or context (ERR) only. Will live as long as this.
Definition at line 167 of file exceptions.h.
| class elementa::base::notreach |
Exception for indicating in runtime that a code should not be reached.
Definition at line 219 of file exceptions.h.


Public Types | |
Types, consts., etc. | |
| using | StdBase = std::runtime_error |
Public Member Functions | |
| notreach (const std::string &explanation) | |
| notreach & | asERR (const std::string &contxt) noexcept override |
| Transform it to be thrown as ERR with the given context. More... | |
| notreach & | asEXC (const std::string &place, const elementa::base::RTTextWithEnum::Combination &fl={elementa::base::RTTextWith::kAll_}) noexcept override |
Launching methods | |
| virtual Exc & | asEXC (const std::string &place, const RTTextWithEnum::Combination &flags={RTTextWith::kAll_}) noexcept |
| Transform it to be thrown as EXC with the given place and flags. More... | |
Catching methods | |
| const char * | what (void) const noexcept override |
| Return the complete message. It will live as long as this exception. More... | |
| const char * | explanation (void) const noexcept |
| Return the explanation only. It will live as long as this exception. More... | |
| const char * | context (void) const noexcept |
| Return the place (EXC) or context (ERR) only. Will live as long as this. More... | |
|
inherited |
Definition at line 119 of file exceptions.h.
|
inline |
Definition at line 223 of file exceptions.h.
|
inlineoverridevirtualnoexcept |
Transform it to be thrown as ERR with the given context.
Reimplemented from elementa::base::Exc.
Definition at line 225 of file exceptions.h.
|
inlineoverridenoexcept |
Definition at line 225 of file exceptions.h.
|
virtualnoexceptinherited |
Transform it to be thrown as EXC with the given place and flags.
The flags are explained in debugging.h, runtime_src_place() function.
Referenced by elementa::base::Szer_Char::deser(), and elementa::base::Szer_NatBin< NatType >::deser().
|
inlineoverridenoexceptinherited |
Return the complete message. It will live as long as this exception.
The message will be one-line except if the explanation or place/context contain some CR.
Definition at line 161 of file exceptions.h.
|
inlinenoexceptinherited |
Return the explanation only. It will live as long as this exception.
Definition at line 164 of file exceptions.h.
|
inlinenoexceptinherited |
Return the place (EXC) or context (ERR) only. Will live as long as this.
Definition at line 167 of file exceptions.h.
| class elementa::base::invstate |
Exception for indicating that some object is in invalid state.
Definition at line 229 of file exceptions.h.


Public Types | |
Types, consts., etc. | |
| using | StdBase = std::runtime_error |
Public Member Functions | |
| invstate (const std::string &expl) | |
| invstate & | asERR (const std::string &contxt) noexcept override |
| Transform it to be thrown as ERR with the given context. More... | |
| invstate & | asEXC (const std::string &place, const elementa::base::RTTextWithEnum::Combination &fl={elementa::base::RTTextWith::kAll_}) noexcept override |
Launching methods | |
| virtual Exc & | asEXC (const std::string &place, const RTTextWithEnum::Combination &flags={RTTextWith::kAll_}) noexcept |
| Transform it to be thrown as EXC with the given place and flags. More... | |
Catching methods | |
| const char * | what (void) const noexcept override |
| Return the complete message. It will live as long as this exception. More... | |
| const char * | explanation (void) const noexcept |
| Return the explanation only. It will live as long as this exception. More... | |
| const char * | context (void) const noexcept |
| Return the place (EXC) or context (ERR) only. Will live as long as this. More... | |
|
inherited |
Definition at line 119 of file exceptions.h.
|
inline |
Definition at line 233 of file exceptions.h.
|
inlineoverridevirtualnoexcept |
Transform it to be thrown as ERR with the given context.
Reimplemented from elementa::base::Exc.
Definition at line 235 of file exceptions.h.
|
inlineoverridenoexcept |
Definition at line 235 of file exceptions.h.
|
virtualnoexceptinherited |
Transform it to be thrown as EXC with the given place and flags.
The flags are explained in debugging.h, runtime_src_place() function.
Referenced by elementa::base::Szer_Char::deser(), and elementa::base::Szer_NatBin< NatType >::deser().
|
inlineoverridenoexceptinherited |
Return the complete message. It will live as long as this exception.
The message will be one-line except if the explanation or place/context contain some CR.
Definition at line 161 of file exceptions.h.
|
inlinenoexceptinherited |
Return the explanation only. It will live as long as this exception.
Definition at line 164 of file exceptions.h.
|
inlinenoexceptinherited |
Return the place (EXC) or context (ERR) only. Will live as long as this.
Definition at line 167 of file exceptions.h.
| class elementa::base::internal_error |
Exception for indicating some internal error not caused by user of object.
Definition at line 239 of file exceptions.h.


Public Types | |
Types, consts., etc. | |
| using | StdBase = std::runtime_error |
Public Member Functions | |
| internal_error (const std::string &expl) | |
| internal_error & | asERR (const std::string &contxt) noexcept override |
| Transform it to be thrown as ERR with the given context. More... | |
| internal_error & | asEXC (const std::string &place, const elementa::base::RTTextWithEnum::Combination &fl={elementa::base::RTTextWith::kAll_}) noexcept override |
Launching methods | |
| virtual Exc & | asEXC (const std::string &place, const RTTextWithEnum::Combination &flags={RTTextWith::kAll_}) noexcept |
| Transform it to be thrown as EXC with the given place and flags. More... | |
Catching methods | |
| const char * | what (void) const noexcept override |
| Return the complete message. It will live as long as this exception. More... | |
| const char * | explanation (void) const noexcept |
| Return the explanation only. It will live as long as this exception. More... | |
| const char * | context (void) const noexcept |
| Return the place (EXC) or context (ERR) only. Will live as long as this. More... | |
|
inherited |
Definition at line 119 of file exceptions.h.
|
inline |
Definition at line 243 of file exceptions.h.
|
inlineoverridevirtualnoexcept |
Transform it to be thrown as ERR with the given context.
Reimplemented from elementa::base::Exc.
Definition at line 245 of file exceptions.h.
|
inlineoverridenoexcept |
Definition at line 245 of file exceptions.h.
|
virtualnoexceptinherited |
Transform it to be thrown as EXC with the given place and flags.
The flags are explained in debugging.h, runtime_src_place() function.
Referenced by elementa::base::Szer_Char::deser(), and elementa::base::Szer_NatBin< NatType >::deser().
|
inlineoverridenoexceptinherited |
Return the complete message. It will live as long as this exception.
The message will be one-line except if the explanation or place/context contain some CR.
Definition at line 161 of file exceptions.h.
|
inlinenoexceptinherited |
Return the explanation only. It will live as long as this exception.
Definition at line 164 of file exceptions.h.
|
inlinenoexceptinherited |
Return the place (EXC) or context (ERR) only. Will live as long as this.
Definition at line 167 of file exceptions.h.
| class elementa::base::notfound |
Exception for indicating that some element has not been found in some place.
Definition at line 249 of file exceptions.h.


Public Types | |
Types, consts., etc. | |
| using | StdBase = std::runtime_error |
Public Member Functions | |
| notfound (const std::string &expl) | |
| notfound & | asERR (const std::string &contxt) noexcept override |
| Transform it to be thrown as ERR with the given context. More... | |
| notfound & | asEXC (const std::string &place, const elementa::base::RTTextWithEnum::Combination &fl={elementa::base::RTTextWith::kAll_}) noexcept override |
Launching methods | |
| virtual Exc & | asEXC (const std::string &place, const RTTextWithEnum::Combination &flags={RTTextWith::kAll_}) noexcept |
| Transform it to be thrown as EXC with the given place and flags. More... | |
Catching methods | |
| const char * | what (void) const noexcept override |
| Return the complete message. It will live as long as this exception. More... | |
| const char * | explanation (void) const noexcept |
| Return the explanation only. It will live as long as this exception. More... | |
| const char * | context (void) const noexcept |
| Return the place (EXC) or context (ERR) only. Will live as long as this. More... | |
|
inherited |
Definition at line 119 of file exceptions.h.
|
inline |
Definition at line 253 of file exceptions.h.
|
inlineoverridevirtualnoexcept |
Transform it to be thrown as ERR with the given context.
Reimplemented from elementa::base::Exc.
Definition at line 255 of file exceptions.h.
|
inlineoverridenoexcept |
Definition at line 255 of file exceptions.h.
|
virtualnoexceptinherited |
Transform it to be thrown as EXC with the given place and flags.
The flags are explained in debugging.h, runtime_src_place() function.
Referenced by elementa::base::Szer_Char::deser(), and elementa::base::Szer_NatBin< NatType >::deser().
|
inlineoverridenoexceptinherited |
Return the complete message. It will live as long as this exception.
The message will be one-line except if the explanation or place/context contain some CR.
Definition at line 161 of file exceptions.h.
|
inlinenoexceptinherited |
Return the explanation only. It will live as long as this exception.
Definition at line 164 of file exceptions.h.
|
inlinenoexceptinherited |
Return the place (EXC) or context (ERR) only. Will live as long as this.
Definition at line 167 of file exceptions.h.
| class elementa::base::invarg |
Exception for indicating that some argument of a method/function is invalid.
Definition at line 259 of file exceptions.h.


Public Types | |
Types, consts., etc. | |
| using | StdBase = std::runtime_error |
Public Member Functions | |
| invarg (const std::string &expl) | |
| invarg & | asERR (const std::string &contxt) noexcept override |
| Transform it to be thrown as ERR with the given context. More... | |
| invarg & | asEXC (const std::string &place, const elementa::base::RTTextWithEnum::Combination &fl={elementa::base::RTTextWith::kAll_}) noexcept override |
Launching methods | |
| virtual Exc & | asEXC (const std::string &place, const RTTextWithEnum::Combination &flags={RTTextWith::kAll_}) noexcept |
| Transform it to be thrown as EXC with the given place and flags. More... | |
Catching methods | |
| const char * | what (void) const noexcept override |
| Return the complete message. It will live as long as this exception. More... | |
| const char * | explanation (void) const noexcept |
| Return the explanation only. It will live as long as this exception. More... | |
| const char * | context (void) const noexcept |
| Return the place (EXC) or context (ERR) only. Will live as long as this. More... | |
|
inherited |
Definition at line 119 of file exceptions.h.
|
inline |
Definition at line 263 of file exceptions.h.
|
inlineoverridevirtualnoexcept |
Transform it to be thrown as ERR with the given context.
Reimplemented from elementa::base::Exc.
Definition at line 265 of file exceptions.h.
|
inlineoverridenoexcept |
Definition at line 265 of file exceptions.h.
|
virtualnoexceptinherited |
Transform it to be thrown as EXC with the given place and flags.
The flags are explained in debugging.h, runtime_src_place() function.
Referenced by elementa::base::Szer_Char::deser(), and elementa::base::Szer_NatBin< NatType >::deser().
|
inlineoverridenoexceptinherited |
Return the complete message. It will live as long as this exception.
The message will be one-line except if the explanation or place/context contain some CR.
Definition at line 161 of file exceptions.h.
|
inlinenoexceptinherited |
Return the explanation only. It will live as long as this exception.
Definition at line 164 of file exceptions.h.
|
inlinenoexceptinherited |
Return the place (EXC) or context (ERR) only. Will live as long as this.
Definition at line 167 of file exceptions.h.
| class elementa::base::outofrange |
Exception for indicating that some value is out of range.
Definition at line 269 of file exceptions.h.


Public Types | |
Types, consts., etc. | |
| using | StdBase = std::runtime_error |
Public Member Functions | |
| outofrange (const std::string &expl) | |
| outofrange & | asERR (const std::string &contxt) noexcept override |
| Transform it to be thrown as ERR with the given context. More... | |
| outofrange & | asEXC (const std::string &place, const elementa::base::RTTextWithEnum::Combination &fl={elementa::base::RTTextWith::kAll_}) noexcept override |
Launching methods | |
| virtual Exc & | asEXC (const std::string &place, const RTTextWithEnum::Combination &flags={RTTextWith::kAll_}) noexcept |
| Transform it to be thrown as EXC with the given place and flags. More... | |
Catching methods | |
| const char * | what (void) const noexcept override |
| Return the complete message. It will live as long as this exception. More... | |
| const char * | explanation (void) const noexcept |
| Return the explanation only. It will live as long as this exception. More... | |
| const char * | context (void) const noexcept |
| Return the place (EXC) or context (ERR) only. Will live as long as this. More... | |
|
inherited |
Definition at line 119 of file exceptions.h.
|
inline |
Definition at line 273 of file exceptions.h.
|
inlineoverridevirtualnoexcept |
Transform it to be thrown as ERR with the given context.
Reimplemented from elementa::base::Exc.
Definition at line 275 of file exceptions.h.
|
inlineoverridenoexcept |
Definition at line 275 of file exceptions.h.
|
virtualnoexceptinherited |
Transform it to be thrown as EXC with the given place and flags.
The flags are explained in debugging.h, runtime_src_place() function.
Referenced by elementa::base::Szer_Char::deser(), and elementa::base::Szer_NatBin< NatType >::deser().
|
inlineoverridenoexceptinherited |
Return the complete message. It will live as long as this exception.
The message will be one-line except if the explanation or place/context contain some CR.
Definition at line 161 of file exceptions.h.
|
inlinenoexceptinherited |
Return the explanation only. It will live as long as this exception.
Definition at line 164 of file exceptions.h.
|
inlinenoexceptinherited |
Return the place (EXC) or context (ERR) only. Will live as long as this.
Definition at line 167 of file exceptions.h.
| #define ELE_CLASS_EXCOVERRIDE | ( | C | ) |
#include <elementa/base/exceptions.h>
Shortening macro that must be used inside classes derived from Exc.
The overriden methods it defines serve to catch those derived classes properly; otherwise the base methods asERR() and asEXC() will be used that return Exc objects, losing the derived class identity.
Definition at line 64 of file exceptions.h.
| #define ELE_CODE_UNIMPLEMENTED |
#include <elementa/base/exceptions.h>
To throw an unimplemented exception.
Definition at line 289 of file exceptions.h.
| #define ELE_CODE_TODO | ( | expl | ) |
#include <elementa/base/exceptions.h>
To throw a TODO exception.
Definition at line 293 of file exceptions.h.
| #define ELE_CODE_NOTREACH |
#include <elementa/base/exceptions.h>
To throw a should-not-reach-here exception.
Definition at line 297 of file exceptions.h.
| #define ELE_CODE_INTERNALERR | ( | expl | ) |
#include <elementa/base/exceptions.h>
To throw an internal-error exception with an explanation.
Definition at line 302 of file exceptions.h.
| #define ELE_CODE_INVSTATE | ( | expl | ) |
#include <elementa/base/exceptions.h>
To throw an invalid-state exception with an explanation.
Definition at line 306 of file exceptions.h.
| #define ELE_CODE_INVARG | ( | expl | ) |
#include <elementa/base/exceptions.h>
To throw an invalid-argument exception with an explanation.
Definition at line 310 of file exceptions.h.
| #define ELE_CODE_OUTOFRANGE | ( | expl | ) |
#include <elementa/base/exceptions.h>
To throw an out-of-range exception with an explanation.
Definition at line 314 of file exceptions.h.
| #define ELE_CODE_NOTFOUND | ( | expl | ) |
#include <elementa/base/exceptions.h>
To throw a not-found exception with an explanation.
Definition at line 318 of file exceptions.h.