![]() |
Elementa v8.0.0
Minimalistic library for any C++ application (C++11 and up)
|
Error: Invalid result of expression. More...
Error: Invalid result of expression.
Definition at line 521 of file expressions.h.
#include "expressions.h"


Public Types | |
Types, consts., etc. | |
| using | StdBase = std::runtime_error |
Public Member Functions | |
| InvResult (const std::string &details) | |
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... | |
|
inherited |
Definition at line 119 of file exceptions.h.
|
inline |
Definition at line 525 of file expressions.h.
|
virtualnoexceptinherited |
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.
|
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.