EMA C++ Edition
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OmmConsumerErrorClient.h
Go to the documentation of this file.
1 /*|-----------------------------------------------------------------------------
2  *| This source code is provided under the Apache 2.0 license --
3  *| and is provided AS IS with no warranty or guarantee of fit for purpose. --
4  *| See the project's LICENSE.md for details. --
5  *| Copyright (C) 2020 Refinitiv. All rights reserved. --
6  *|-----------------------------------------------------------------------------
7  */
8 
9 #ifndef __thomsonreuters_ema_access_OmmConsumerErrorClient_h
10 #define __thomsonreuters_ema_access_OmmConsumerErrorClient_h
11 
34 #include "Access/Include/Common.h"
35 
36 namespace thomsonreuters {
37 
38 namespace ema {
39 
40 namespace access {
41 
42 class EmaString;
43 class ConsumerSessionInfo;
44 
46 {
47 public:
48 
50 
51 
56  virtual void onInvalidHandle( UInt64 handle, const EmaString& text );
57 
63  virtual void onInaccessibleLogFile( const EmaString& filename, const EmaString& text );
64 
69  virtual void onMemoryExhaustion( const EmaString& text);
70 
75  virtual void onInvalidUsage( const EmaString& text);
76 
84  virtual void onInvalidUsage( const EmaString& text, Int32 errorCode );
85 
92  virtual void onSystemError( Int64 code, void* ptr, const EmaString& text );
93 
100  virtual void onJsonConverter( const EmaString& text, Int32 errorCode, const ConsumerSessionInfo& sessionInfo );
102 
104 
105  virtual ~OmmConsumerErrorClient();
107 
108 protected:
109 
111 
112 private:
113 
115  OmmConsumerErrorClient& operator=( const OmmConsumerErrorClient& );
116 };
117 
118 }
119 
120 }
121 
122 }
123 
124 #endif // __thomsonreuters_ema_access_OmmConsumerErrorClient_h
long long Int64
represents 64-bit signed integer
Definition: Common.h:74
ConsumerSessionInfo provides session information for OmmConsumer when EMA throws OmmJsonConverterExce...
unsigned long long UInt64
represents 64-bit unsigned integer
Definition: Common.h:68
OmmConsumerErrorclient class provides callback mechanism used in place of exceptions.
EmaString class is a container of a null terminated Ascii character string.
Definition: EmaString.h:56
#define EMA_ACCESS_API
Definition: Common.h:95
int Int32
represents 32-bit signed integer
Definition: Common.h:62
Common.h file provides definitions of common variable types used in EMA.