Base class for every exception raised by the NoTeX core library. More...
#include <notex/errors.hpp>
Public Member Functions | |
| NotexError (std::string message, ExitCode exit_code) | |
| Constructs an error with its message and exit code. | |
| ExitCode | exit_code () const noexcept |
Base class for every exception raised by the NoTeX core library.
Carries both a human-readable message, inherited from std::runtime_error, and the ExitCode that the exception should map onto once it reaches the Orchestrator's single catch block.
Definition at line 43 of file errors.hpp.
|
inline |
Constructs an error with its message and exit code.
| message | Human-readable description of what went wrong. |
| exit_code | Exit code the executable should return. |
Definition at line 50 of file errors.hpp.
References exit_code().
|
inlinenoexcept |
Definition at line 54 of file errors.hpp.
Referenced by NotexError().