|
| | OutOfRange (const std::string &var_desc, const std::string &context) throw () |
| |
| | ~OutOfRange () throw () |
| |
| virtual const char * | type () const throw () |
| | Get a string tag identifying the exception type. More...
|
| |
| virtual std::string | var_desc () const throw () |
| | Get a short description of the variable that has been checked. More...
|
| |
| virtual std::string | desc () const throw () |
| | Get a string describing what happened that threw the exception. More...
|
| |
| | Consistency (const std::string &context, const std::string &error=std::string()) throw () |
| |
| | ~Consistency () throw () |
| |
| | Generic () throw () |
| |
| | Generic (const std::string &context) throw () |
| |
| virtual | ~Generic () throw () |
| |
| virtual const std::string & | fullInfo () const throw () |
| | Format in a string all available information about the exception. More...
|
| |
| virtual const char * | what () const throw () |
| |
| | Context () throw () |
| |
| | Context (const std::string &context) throw () |
| |
| void | addContext (const std::string &c) throw () |
| |
| std::string | formatContext () const throw () |
| |
| const std::vector< std::string > & | context () const throw () |
| |
Exception thrown when some value is out of range.
Usage:
if (age < 200)
throw OutOfRange(
"age",
"ensuring that no mere mortal is using the system");