Defines an interface through which the Handler notifies subscribers about errors occurred while processing messages.
More...
|
virtual | ~ErrorListener () |
| Disables public delete operator in the interface class.
|
|
Defines an interface through which the Handler notifies subscribers about errors occurred while processing messages.
virtual void onError |
( |
ErrorCode::Enum |
code, |
|
|
const std::string & |
description |
|
) |
| |
|
pure virtual |
Implement this member to get notified about errors.
- Parameters
-
code | identifies error occurred while processing messages. |
description | supplies notes on occurred error. |
- Note
- Usually, Handler is capable to recover from errors by itself. That means, there's no need to restart manually. Instead, Handler will perform all necessary recovering by itself.