Base class for all WiscDB-specific exceptions. More...
#include <wiscdb_exception.h>
Public Member Functions | |
WiscDbException (const std::string &msg) | |
virtual | ~WiscDbException () throw () |
virtual const std::string & | message () const |
virtual const char * | what () const throw () |
Protected Attributes | |
std::string | message_ |
Friends | |
std::ostream & | operator<< (std::ostream &out, const WiscDbException &exception) |
Base class for all WiscDB-specific exceptions.
Definition at line 18 of file wiscdb_exception.h.
wiscdb::WiscDbException::WiscDbException | ( | const std::string & | msg | ) | [explicit] |
Constructs a new exception with the given message.
msg | Message with information about the exception. |
Definition at line 12 of file wiscdb_exception.cpp.
virtual wiscdb::WiscDbException::~WiscDbException | ( | ) | throw () [inline, virtual] |
Destroys the exception. Does nothing special; just included to make the compiler happy.
Definition at line 31 of file wiscdb_exception.h.
virtual const std::string& wiscdb::WiscDbException::message | ( | ) | const [inline, virtual] |
Returns a message describing the problem that caused this exception.
Definition at line 38 of file wiscdb_exception.h.
virtual const char* wiscdb::WiscDbException::what | ( | ) | const throw () [inline, virtual] |
Returns a description of the exception.
Definition at line 45 of file wiscdb_exception.h.
std::ostream& operator<< | ( | std::ostream & | out, |
const WiscDbException & | exception | ||
) | [friend] |
Formats this exception for printing on the given stream.
out | Stream to print exception to. |
exception | Exception to print. |
Definition at line 54 of file wiscdb_exception.h.
std::string wiscdb::WiscDbException::message_ [protected] |
Message describing the problem that caused this exception.
Definition at line 64 of file wiscdb_exception.h.