#include <exception.hpp>
Public Member Functions | |
| xh_format_exception (const string &message, const string &text, const string &origin="") | |
| virtual const string & | getText () const |
| virtual void | setText (const string &text) |
Public Member Functions inherited from xh_exception | |
| 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) |
A format-related exception.
Code should throw this exception when a string does not appear in the expected format (for example, a date string does not conform to ISO 8601).
In addition to the functionality of xh_exception, an xh_format_exception can contain a copy of the original malformated text.
1.8.4