Etermal
Embeddable Terminal and shell for OpenGL
|
Contains information about an error that was encountered by the Terminal. More...
#include <termError.h>
Public Member Functions | |
termError () | |
Construct a new termError, setting code and severe to 0 and false, respectively. | |
termError (const std::string &location, const std::string &message, int code, bool severe) noexcept | |
Construct a new termError with arguments. More... | |
const char * | what () const noexcept override |
Returns the c_str() of message. More... | |
Public Attributes | |
std::string | location |
The location within the etm namespace that the error was detected. | |
std::string | message |
The error message. | |
int | code |
The error code. More... | |
bool | severe |
If the error is severe or not. More... | |
Contains information about an error that was encountered by the Terminal.
|
noexcept |
|
overridenoexcept |
int etm::termError::code |
The error code.
Set to zero when not applicable.
bool etm::termError::severe |
If the error is severe or not.
Severe errors indicate there's a problem that affects the entire terminal, that the function that raised the error cannot contain negative side effects. Non-severe errors are ones that, for the most part, are contained by the raiser, allowing the rest of the code to function as normal.