EMA C++ Edition
OmmProviderErrorClient.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, 2024 LSEG. All rights reserved. --
6 *|-----------------------------------------------------------------------------
7 */
8
9#ifndef __refinitiv_ema_access_ommProviderErrorClient_h
10#define __refinitiv_ema_access_ommProviderErrorClient_h
11
35
36namespace refinitiv {
37
38namespace ema {
39
40namespace access {
41
42class EmaString;
43class ProviderSessionInfo;
44
46{
47public:
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 ProviderSessionInfo& sessionInfo );
101
107 virtual void onDispatchError(const EmaString& text, Int32 errorCode);
109
111
114
115protected:
116
118
119private:
120
123};
124
125}
126
127}
128
129}
130
131#endif // __refinitiv_ema_access_ommProviderErrorClient_h
Common.h file provides definitions of common variable types used in EMA.
#define EMA_ACCESS_API
Definition: Common.h:95
*|--------------------------------------------------------------------------—
Definition: AckMsg.h:62
int Int32
represents 32-bit signed integer
Definition: Common.h:62
long long Int64
represents 64-bit signed integer
Definition: Common.h:74
unsigned long long UInt64
represents 64-bit unsigned integer
Definition: Common.h:68
The access namespace contains all interfaces and definitions specified for use with the EMA Access pa...
The ema namespace contains all interfaces and definitions specified for use with EMA.
EmaString class is a container of a null terminated Ascii character string.
Definition: EmaString.h:57
OmmProviderErrorClient class provides callback mechanism used in place of exceptions.
virtual void onSystemError(Int64 code, void *ptr, const EmaString &text)
virtual void onDispatchError(const EmaString &text, Int32 errorCode)
virtual void onInaccessibleLogFile(const EmaString &filename, const EmaString &text)
virtual void onInvalidUsage(const EmaString &text)
virtual void onMemoryExhaustion(const EmaString &text)
virtual void onJsonConverter(const EmaString &text, Int32 errorCode, const ProviderSessionInfo &sessionInfo)
virtual void onInvalidUsage(const EmaString &text, Int32 errorCode)
virtual void onInvalidHandle(UInt64 handle, const EmaString &text)
ProviderSessionInfo provides session information for OmmProvider when EMA throws OmmJsonConverterExce...