EMA C++ Edition
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 Refinitiv. All rights reserved. --
6  *|-----------------------------------------------------------------------------
7  */
8 
9 #ifndef __thomsonreuters_ema_access_OmmJsonConverterException_h
10 #define __thomsonreuters_ema_access_OmmJsonConverterException_h
11 
26 
27 namespace thomsonreuters {
28 
29 namespace ema {
30 
31 namespace access {
32 
34 {
35 public:
36 
40  enum ErrorCode
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 
82  OmmException::ExceptionType getExceptionType() const;
83 
87  const EmaString& getText() const;
88 
92  Int32 getErrorCode() const;
93 
97  const EmaString& toString() const;
98 
102  virtual const SessionInfo& getSessionInfo() const = 0;
104 
106 
107 
109  virtual ~OmmJsonConverterException();
111 
112 protected:
113 
115 
118 
120 };
121 
122 }
123 
124 }
125 
126 }
127 
128 #endif // __thomsonreuters_ema_access_OmmJsonConverterException_h
129 
OmmJsonConverterException is thrown when EMA fails to perform for RWF/JSON conversion.
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
SessionInfo provides session information when EMA throws OmmJsonConverterException.
Definition: SessionInfo.h:29
OmmException is a parent class for all exception types thrown by EMA.
Definition: OmmException.h:45