![]() |
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::qsys::resdetail::check_percentiles(), 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::qsys::qsys_ddckk(), line::qsys::qsys_engset(), line::qsys::qsys_gimc(), line::qsys::qsys_gm1_res(), line::qsys::qsys_md1(), line::qsys::qsys_mer1(), line::qsys::qsys_mg1_prio_res(), line::qsys::qsys_mg1kk(), line::qsys::qsys_mgc_ps(), line::qsys::qsys_mh21(), line::qsys::qsys_mmcc(), line::qsys::qsys_mmck_dist(), line::qsys::qsys_mmckk(), line::qsys::QsysResT< double >::scalar(), line::qsys::resdetail::throw_unknown_option(), line::UnsupportedError::UnsupportedError(), line::UnsupportedError::UnsupportedError(), and line::qsys::QsysResT< double >::vec().
|
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(), run_server(), line::lal::SolverAG::runAnalyzer(), line::lal::SolverCTMC::runAnalyzer(), and line::lal::SolverMAM::runAnalyzer().
|
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().