EMA C++ Edition
OmmJsonConverterException.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 LSEG. All rights reserved. --
6 *|-----------------------------------------------------------------------------
7 */
8
9#ifndef __refinitiv_ema_access_OmmJsonConverterException_h
10#define __refinitiv_ema_access_OmmJsonConverterException_h
11
26
27namespace refinitiv {
28
29namespace ema {
30
31namespace access {
32
34{
35public:
36
41 {
42 NoErrorEnum = 0,
44 FailureEnum = -1,
46 NoBuffersEnum = -4,
48 BufferTooSmallEnum = -21,
50 InvalidArgumentEnum = -22,
52 EncodingUnavaliableEnum = -23,
54 UnsupportedDataTypeEnum = -24,
56 UnexpectedEncoderCallEnum = -25,
58 IncompleteDataEnum = -26,
60 SetDefNotProvidedEnum = -27,
62 InvalidDataEnum = -29,
64 IllegalLocalSetDefEnum = -30,
66 TooManyLocalSetDefsEnum = -31,
68 DuplicateLocalSetDefsEnum = -32,
70 IteratorOverrunEnum = -33,
72 ValueOutOfRangeEnum = -34,
74 DictDuplicateEnumValueEnum = -35,
75 };
76
78
79
83
87 const EmaString& getText() const;
88
93
97 const EmaString& toString() const;
98
102 virtual const SessionInfo& getSessionInfo() const = 0;
104
106
107
111
112protected:
113
115
118
120};
121
122}
123
124}
125
126}
127
128#endif // __refinitiv_ema_access_OmmJsonConverterException_h
129
#define EMA_ACCESS_API
Definition: Common.h:95
*|--------------------------------------------------------------------------—
Definition: AckMsg.h:62
int Int32
represents 32-bit signed integer
Definition: Common.h:62
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
OmmException is a parent class for all exception types thrown by EMA.
Definition: OmmException.h:46
OmmJsonConverterException is thrown when EMA fails to perform for RWF/JSON conversion.
OmmException::ExceptionType getExceptionType() const
OmmJsonConverterException(const OmmJsonConverterException &)
OmmJsonConverterException & operator=(const OmmJsonConverterException &)
virtual const SessionInfo & getSessionInfo() const =0
SessionInfo provides session information when EMA throws OmmJsonConverterException.
Definition: SessionInfo.h:30