![]() |
LINE Solver (C++)
Templated C++ port of the LINE queueing solver
|
Base error for the multiprecision C++ port. More...
#include <line/util/error.h>
Public Member Functions | |
| Error (const std::string &what) | |
| const std::string & | id () const noexcept |
| The full identifier, e.g. | |
| std::string | category () const |
| unsupported, numerical, input, external, internal, or empty for LINE:Error. | |
| std::string | kind () const |
| The <kind> part, or empty for LINE:Error. | |
Protected Member Functions | |
| Error (const char *category, const std::string &kind, const std::string &what) | |
Base error for the multiprecision C++ port.
Nothing in the library calls exit() or prints to stderr on failure: the CLI catches these at main and the Python binding maps them to exceptions, so the same code path serves both.
Every error carries an identifier from the cross-codebase vocabulary, LINE:<category>:<kind>, shared with MATLAB error ids, Java LineException and Python LineError. A bare Error is LINE:Error, the legacy unclassified id; the refinements below fix the category.
|
inlineexplicit |
Definition at line 75 of file error.h.
Referenced by line::ExternalError::ExternalError(), line::ExternalError::ExternalError(), line::InputError::InputError(), line::InputError::InputError(), line::InternalError::InternalError(), line::InternalError::InternalError(), line::NumericError::NumericError(), line::NumericError::NumericError(), line::UnsupportedError::UnsupportedError(), and line::UnsupportedError::UnsupportedError().
|
inlineprotected |
Definition at line 95 of file error.h.
References category(), and kind().
|
inline |
|
inlinenoexcept |
The full identifier, e.g.
LINE:unsupported:Cache.
Definition at line 78 of file error.h.
Referenced by main(), line::cli::main_body(), run_invocation_captured(), and run_server().
|
inline |
The <kind> part, or empty for LINE:Error.
Definition at line 88 of file error.h.
Referenced by Error(), line::ExternalError::ExternalError(), line::InputError::InputError(), line::InternalError::InternalError(), line::NumericError::NumericError(), line::lqn::srvn_file_to_lqnx(), and line::UnsupportedError::UnsupportedError().