13 std::runtime_error(msg) {
19 return this->m_what.c_str();
23 return this->m_status;
Definition of the NeXus C++ API.
virtual ~Exception()
Destructor for exception.
Header for a base NeXus::Exception.
Exception(const std::string &msg="GENERIC ERROR", const int status=0)
Create a new NeXus::Exception.
int status()
Get the status associated with the exception.
virtual const char * what() const
Get the message associated with the exception.