OnixS CBOE CSM Handler for C++  1.2.8.0
Public Member Functions | Protected Member Functions
ErrorListener Class Reference

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

List of all members.

Public Member Functions

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

Protected Member Functions

virtual ~ErrorListener ()
 Class provides an interface for handling errors in subscriptions.

Detailed Description

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


Constructor & Destructor Documentation

virtual ~ErrorListener ( ) [inline, protected, virtual]

Class provides an interface for handling errors in subscriptions.

It doesn't provide an interface for instance deletion. However, since C++ doesn't have pure interface concept, destructor will be generated anyway. We can only control proper use of it. For this reason we hide from public use and make it available for descendants.


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.