Now deprecated ways in which mxlib handles errors. Some things still actually use this...
|
| std::string | mx::MXE_CodeToName (int ec) |
| | Return the name for an mxlib error code.
|
| |
| std::string | mx::MXE_CodeToDescription (int ec) |
| | Return the description for an mxlib error code.
|
| |
| std::string | mx::errno_CodeToName (int ec) |
| | Return the macro name and a message for a standard errno code.
|
| |
| std::string | mx::error_report (const std::string &source, const int &code, const std::string &file, const int &line, const std::string &expl="") |
| | Construct a rich error report given an mxlib error code.
|
| |
| std::string | mx::errno_report (const std::string &source, int ec, const std::string &file, const int &line, const std::string &expl="") |
| | Construct a rich error report given a standard errno error code.
|
| |
◆ errno_CodeToName()
| std::string mx::errno_CodeToName |
( |
int |
ec | ) |
|
Return the macro name and a message for a standard errno code.
- Returns
- the name of the macro corresponding to the code.
- Parameters
-
Referenced by mx::err::mxException::build_what().
◆ errno_report()
| std::string mx::errno_report |
( |
const std::string & |
source, |
|
|
int |
ec, |
|
|
const std::string & |
file, |
|
|
const int & |
line, |
|
|
const std::string & |
expl = "" |
|
) |
| |
Construct a rich error report given a standard errno error code.
- Returns
- the formatted error report.
- Parameters
-
| [in] | source | intended to identify the component (i.e. the class name) |
| [in] | ec | an errno erro code |
| [in] | file | file should be passed the FILE macro |
| [in] | line | line should be passed the LINE macro |
| [in] | expl | [optional] if more information can be provided, use this to inform the user. |
◆ error_report()
| std::string mx::error_report |
( |
const std::string & |
source, |
|
|
const int & |
code, |
|
|
const std::string & |
file, |
|
|
const int & |
line, |
|
|
const std::string & |
expl = "" |
|
) |
| |
Construct a rich error report given an mxlib error code.
- Returns
- the formatted error report.
- Parameters
-
| [in] | source | is intended to identify the mxlib component (i.e. the class name) |
| [in] | code | is an MXE_* error code |
| [in] | file | should be passed the FILE macro |
| [in] | line | should be passed the LINE macro |
| [in] | expl | [optional] if more information can be provided, use this to inform the user. |
◆ MXE_CodeToDescription()
| std::string mx::MXE_CodeToDescription |
( |
int |
ec | ) |
|
Return the description for an mxlib error code.
- Returns
- the description for and error code.
- Parameters
-
◆ MXE_CodeToName()
| std::string mx::MXE_CodeToName |
( |
int |
ec | ) |
|
Return the name for an mxlib error code.
- Returns
- the name of the macro corresponding to the error code.
- Parameters
-