Base class of all exceptions thrown by the InstantIO library. More...
#include <InstantIO/Exception.h>
Public Member Functions | |
Exception () | |
Creates a new Exception object with an empty error message. | |
Exception (const std::string &msg) | |
Creates a new Exception object with an error message. | |
Exception (const Exception &other) | |
Creates a new Exception object that is an exact copy of another Exception object. | |
const char * | what () const |
Returns an error message describing the error that occurred. | |
Protected Attributes | |
std::string | msg_ |
The error message. |
Base class of all exceptions thrown by the InstantIO library.
InstantIO::Exception::Exception | ( | const std::string & | msg | ) | [inline, explicit] |
Creates a new Exception object with an error message.
msg | A message describing the error that occurred. |
InstantIO::Exception::Exception | ( | const Exception & | other | ) | [inline] |
Creates a new Exception object that is an exact copy of another Exception object.
other | The other Exception object |
const char* InstantIO::Exception::what | ( | ) | const [inline] |
Returns an error message describing the error that occurred.