OnixS Borsa Italiana IDEM SOLA HSVF Market Data Handler for C++  1.1.2.0
Public Member Functions | Protected Member Functions | List of all members
ErrorListener Class Referenceabstract

Defines an interface through which the Handler notifies subscribers about errors occurred while processing messages. More...

Public Member Functions

virtual void onError (ErrorCode::Enum code, const std::string &description)=0
 Implement this member to get notified about errors. More...
 

Protected Member Functions

virtual ~ErrorListener ()
 Disables public delete operator in the interface class.
 

Detailed Description

Defines an interface through which the Handler notifies subscribers about errors occurred while processing messages.

Member Function Documentation

virtual void onError ( ErrorCode::Enum  code,
const std::string &  description 
)
pure virtual

Implement this member to get notified about errors.

Parameters
codeidentifies error occurred while processing messages.
descriptionsupplies 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.