Exception description (API)
More...
Exception description (API)
Introduction
The Exception class groups all exceptions thrown by functions from the API. This virtual class is only useful to catch exceptions originating from one of those functions.
Example
try {
}
cerr << exception.
what() << endl;
exit(1);
}
catch (...) {
cerr << Error("abnormal termination") << endl;
exit(2);
}
Exception description (API)
Definition Exception.h:34
string what() const
Definition Exception.h:63
◆ what()
| string Hurricane::Exception::what |
( |
| ) |
const |
|
inline |
◆ textWhat()
| string Hurricane::Exception::textWhat |
( |
| ) |
const |
|
inline |
Returns: an informative (hopefully) about what has caused the exception to occurs. Formatted for an output on a tty.
- See also
- setTextTranslator
Referenced by what().
◆ htmlWhat()
| string Hurricane::Exception::htmlWhat |
( |
| ) |
const |
|
inline |
Returns: an informative (hopefully) about what has caused the exception to occurs. Formatted for an output on a HTML capable device.
- See also
- setHtmlTranslator
◆ setTextTranslator()
| static void Hurricane::Exception::setTextTranslator |
( |
const TextTranslator & | translator | ) |
|
|
inlinestatic |
Set the translator used for text (tty) output.
◆ setHtmlTranslator()
| static void Hurricane::Exception::setHtmlTranslator |
( |
const TextTranslator & | translator | ) |
|
|
inlinestatic |
Set the translator used for HTML (hint: Qt manage simple HTML in text) output.
The documentation for this class was generated from the following files: