#include <elm/util/ErrorHandler.h>
An error handler allows to get control on the production of error message. The onError() methods must be overload by subclassing this class and the obtained object must be passed to the ErrorBase that generates the error messages.
- Author
- H. Cassé casse.nosp@m.@iri.nosp@m.t.fr
virtual elm::ErrorHandler::~ErrorHandler |
( |
| ) |
|
|
virtual |
Get a string representing the supplied error level.
- Parameters
-
level | Error level to get string of. |
- Returns
- Matching string.
Referenced by onError().
This method is called each time an error message is generated. As a default, it display the error on standard error output.
- Parameters
-
level | Level of the error. |
message | Message to display. |
This method may be called by the class inheriting from ErrorHandler . This event will be transmitted to the error handler. to generate an error event.
- Parameters
-
level | Level of the error event. |
message | Message of the error event. |
References elm::cerr, elm::io::endl, and getLevelString().
Referenced by elm::ErrorBase::onError().
The documentation for this class was generated from the following files: