LINE Solver (C++)
Templated C++ port of the LINE queueing solver
Loading...
Searching...
No Matches
line::Error Class Reference

Base error for the multiprecision C++ port. More...

#include <line/util/error.h>

Inheritance diagram for line::Error:
Collaboration diagram for line::Error:

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)

Detailed Description

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.

Definition at line 73 of file error.h.

Constructor & Destructor Documentation

◆ Error() [1/2]

◆ Error() [2/2]

line::Error::Error ( const char * category,
const std::string & kind,
const std::string & what )
inlineprotected

Definition at line 95 of file error.h.

References category(), and kind().

Member Function Documentation

◆ category()

std::string line::Error::category ( ) const
inline

unsupported, numerical, input, external, internal, or empty for LINE:Error.

Definition at line 81 of file error.h.

Referenced by Error().

◆ id()

const std::string & line::Error::id ( ) const
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().

◆ kind()


The documentation for this class was generated from the following file: