Umasoft
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Member Functions | List of all members
xh_exception Class Reference

#include <exception.hpp>

Inheritance diagram for xh_exception:
xh_throwable xh_format_exception xh_io_exception xh_range_exception

Public Member Functions

 xh_exception (const string &message, const string &origin="")
 
- Public Member Functions inherited from xh_throwable
 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)
 

Detailed Description

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).


The documentation for this class was generated from the following files: