NeXus
1
|
Class that provides for a standard NeXus exception. More...
#include <bindings/cpp/NeXusException.hpp>
Public Member Functions | |
Exception (const std::string &msg="GENERIC ERROR", const int status=0) | |
Create a new NeXus::Exception. | |
virtual const char * | what () const throw () |
Get the message associated with the exception. | |
int | status () throw () |
Get the status associated with the exception. | |
virtual | ~Exception () throw () |
Destructor for exception. |
Class that provides for a standard NeXus exception.
Definition at line 20 of file NeXusException.hpp.
NeXus::Exception::Exception | ( | const std::string & | msg = "GENERIC ERROR" , |
const int | status = 0 |
||
) |
Create a new NeXus::Exception.
msg | the string to pass a the error message |
status |
Definition at line 12 of file NeXusException.cpp.
References status().
|
virtual |
Destructor for exception.
Definition at line 26 of file NeXusException.cpp.
int NeXus::Exception::status | ( | ) | throw () |
Get the status associated with the exception.
Definition at line 22 of file NeXusException.cpp.
Referenced by Exception().
|
virtual |
Get the message associated with the exception.
Definition at line 18 of file NeXusException.cpp.