iRoCS Toolbox
1.1.0
|
Objects of the RuntimeError class are thrown in case of errors while processing ArrayToolbox functions. More...
#include "libArrayToolbox/RuntimeError.hh"
Public Member Functions | |
RuntimeError (char const *message=NULL) | |
Constructor. More... | |
RuntimeError (std::string const &message) | |
Constructor. More... | |
virtual | ~RuntimeError () throw () |
Destructor. More... | |
template<typename DataT > | |
RuntimeError & | operator<< (DataT const &data) |
Appends the given data to the message string. More... | |
virtual const char * | what () const throw () |
Returns the error description. More... | |
Protected Attributes | |
std::string | _message |
Objects of the RuntimeError class are thrown in case of errors while processing ArrayToolbox functions.
Definition at line 50 of file RuntimeError.hh.
atb::RuntimeError::RuntimeError | ( | char const * | message = NULL | ) |
Constructor.
Creates a new RuntimeError object with specified error message string
message | The error message explaining what went wrong |
atb::RuntimeError::RuntimeError | ( | std::string const & | message | ) |
Constructor.
Creates a new RuntimeError object with specified error message string
message | The error message explaining what went wrong |
|
virtual |
Destructor.
RuntimeError & atb::RuntimeError::operator<< | ( | DataT const & | data | ) |
Appends the given data to the message string.
data |
Definition at line 112 of file RuntimeError.hh.
|
virtual |
Returns the error description.
|
protected |
Definition at line 107 of file RuntimeError.hh.
Referenced by operator<<().