#include <exception.hpp>
Public Member Functions | |
xh_exception (const string &message, const string &origin="") | |
![]() | |
xh_throwable (const string &message, const string &origin="") | |
virtual const string & | getMessage () const |
virtual const string | getFormattedMessage () const |
virtual void | setMessage (const string &message) |
virtual const string & | getOrigin () const |
virtual void | setOrigin (const string &origin) |
Base class for all exceptions.
Code should throw this exception only when no more specific exception applies. It may not be caught until higher up in the application, where it is not possible to resume normal operations if desired.
A caller can catch xh_exception by default to ensure that all exceptions are caught. Every exception can contain a human-readable error message and a human-readable string indicating the part of the application causing the exception (as an aid to debugging, only).