mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
|
mxException for an allocation error
Definition at line 253 of file mxException.hpp.
#include <mxException.hpp>
Public Member Functions | |
allocerr (const std::string &esrc, const std::string &efile, const int &line, const std::string &expl) | |
Public Member Functions inherited from mx::err::mxException | |
mxException () noexcept | |
Default constructor. More... | |
mxException (const mxException &e) noexcept | |
Copy constructor. More... | |
mxException (const std::string &esrc, const int &ec, const std::string &emnem, const std::string &efile, const int &line, const std::string &expl) | |
Construct and fill in each of the values, except errno. More... | |
mxException (const std::string &esrc, const int &ec, const std::string &emnem, const int &en, const std::string &efile, const int &line, const std::string &expl) | |
Construct and fill in each of the values, including errno. More... | |
mxException & | operator= (const mxException &e) noexcept |
Assignment operator. More... | |
virtual | ~mxException () throw () |
Destructor. More... | |
virtual void | build_what () |
Build the what string. More... | |
virtual const char * | what () const noexcept |
Return the details of the exception as a single string. More... | |
Additional Inherited Members | |
Protected Attributes inherited from mx::err::mxException | |
char | m_whatstr [4096] |
Contains the what() string. More... | |
std::string | m_source {""} |
The source of the exception, such as stdlib or cfitisio or the function name. More... | |
int | m_code {0} |
The mxlib error code. More... | |
std::string | m_codeName {""} |
The name of the error code. More... | |
int | m_errno {0} |
The errno error code (only used if non-zero) More... | |
std::string | m_file {""} |
The source file where the exception originated. More... | |
int | m_line {0} |
The line number of the file where the exception originated. More... | |
std::string | m_explanation {""} |
The long explanation of the error. More... | |
|
inline |
[in] | esrc | the source of the exception, typically the class and function |
[in] | efile | the source file in which the exception occurred, normally __FILE__ |
[in] | line | the line number where the exception was thrown |
[in] | expl | the explanation for why the exception was thrown |
Definition at line 256 of file mxException.hpp.