|
MXVM 1.8.1
Virtual Machine, Compiler, and Pascal Frontend
|
General-purpose exception with errno-aware factory method. More...
#include <exception.hpp>

Public Member Functions | |
| Exception (const std::string &message) | |
| Construct an exception from a string message. | |
| Exception (const char *message) | |
| Construct an exception from a C string message. | |
Static Public Member Functions | |
| static Exception | error (const std::string &context) |
| Create an exception with errno appended. | |
General-purpose exception with errno-aware factory method.
Extends std::runtime_error. The static error() method appends strerror(errno) to the context string.
Definition at line 38 of file exception.hpp.
|
inlineexplicit |
Construct an exception from a string message.
| message | Human-readable error description |
Definition at line 44 of file exception.hpp.
Referenced by error().
|
inlineexplicit |
Construct an exception from a C string message.
| message | Human-readable error description |
Definition at line 51 of file exception.hpp.
|
inlinestatic |
Create an exception with errno appended.
| context | Descriptive context prefix |
Definition at line 59 of file exception.hpp.
References Exception().