#include <MicrostrainException.hpp>
Public Member Functions | |
void | append (const std::string &msg) |
MicrostrainException (const std::string &error_msg) throw () | |
const char * | what () const throw () |
virtual | ~MicrostrainException () throw () |
Private Member Functions | |
MicrostrainException () | |
Private Attributes | |
std::string | error_msg |
The MicrostrainException class is used for error reporting inside the microstrain library. It also allow for throw-catch mode of error handling and reporting.
The method MicrostrainException::append is supplied for extending multiple the error message through multiple throw-catch statements.
Definition at line 23 of file MicrostrainException.hpp.
MicrostrainException::MicrostrainException | ( | const std::string & | error_msg | ) | throw () [explicit] |
Alternative constructor. This method never throws.
error_msg | This is the additional error message to help in localization. |
Definition at line 11 of file MicrostrainException.cpp.
MicrostrainException::~MicrostrainException | ( | ) | throw () [virtual] |
Generic destructor. This method never throws.
Definition at line 15 of file MicrostrainException.cpp.
The empty constructor is hidden.
void LABUST::MICROSTRAIN::MicrostrainException::append | ( | const std::string & | msg | ) | [inline] |
Append the additional message to the current error_msg.
msg | The message to be appended. |
Definition at line 46 of file MicrostrainException.hpp.
const char * MicrostrainException::what | ( | ) | const throw () |
Returns the error message of the object. This method never throws.
Definition at line 17 of file MicrostrainException.cpp.
std::string LABUST::MICROSTRAIN::MicrostrainException::error_msg [private] |
The supplied error message.
Definition at line 46 of file MicrostrainException.hpp.