Loading [MathJax]/extensions/tex2jax.js
mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Modules Pages
mxError.cpp File Reference

Function definitions for the mxlib error reporting system. More...

Function definitions for the mxlib error reporting system.

Author
Jared R. Males (jared.nosp@m.male.nosp@m.s@gma.nosp@m.il.c.nosp@m.om)

Definition in file mxError.cpp.

Go to the source code of this file.

Namespaces

namespace  mx
 The mxlib c++ namespace.
 

Functions

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.