EMA C++ Edition
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OmmInvalidUsageException.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) 2019 Refinitiv. All rights reserved. --
6  *|-----------------------------------------------------------------------------
7  */
8 
9 #ifndef __thomsonreuters_ema_access_OmmInvalidUsageException_h
10 #define __thomsonreuters_ema_access_OmmInvalidUsageException_h
11 
24 
25 namespace thomsonreuters {
26 
27 namespace ema {
28 
29 namespace access {
30 
32 {
33 public :
34 
38  enum ErrorCode
39  {
40  NoErrorEnum = 0,
42  FailureEnum = -1,
44  NoBuffersEnum = -4,
46  BufferTooSmallEnum = -21,
48  InvalidArgumentEnum = -22,
50  EncodingUnavaliableEnum = -23,
52  UnsupportedDataTypeEnum = -24,
54  UnexpectedEncoderCallEnum = -25,
56  IncompleteDataEnum = -26,
58  SetDefNotProvidedEnum = -27,
60  InvalidDataEnum = -29,
62  IllegalLocalSetDefEnum = -30,
64  TooManyLocalSetDefsEnum = -31,
66  DuplicateLocalSetDefsEnum = -32,
68  IteratorOverrunEnum = -33,
70  ValueOutOfRangeEnum = -34,
72  DictDuplicateEnumValueEnum = -35,
74  PacketGapDetectedEnum = -61,
76  SlowReaderEnum = -62,
78  CongestionDetectedEnum = -63,
80  PersistenceFullEnum = -91,
82  /* EMA error codes */
83  InvalidOperationEnum = -4048,
85  NoActiveChannelEnum = -4049,
87  UnSupportedChannelTypeEnum = - 4050,
89  UnSupportedServerTypeEnum = -4051,
91  LoginRequestTimeOutEnum = -4052,
93  LoginRequestRejectedEnum = -4053,
95  DirectoryRequestTimeOutEnum = -4054,
97  DictionaryRequestTimeOutEnum = -4055,
99  InternalErrorEnum = -4060
100  };
101 
103 
104 
107  OmmException::ExceptionType getExceptionType() const;
108 
112  const EmaString& getText() const;
113 
117  const EmaString& toString() const;
118 
122  Int32 getErrorCode() const;
124 
126 
127 
129  virtual ~OmmInvalidUsageException();
131 
132 protected :
133 
135 
138 
140 };
141 
142 }
143 
144 }
145 
146 }
147 
148 #endif // __thomsonreuters_ema_access_OmmInvalidUsageException_h
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
OmmInvalidUsageException is thrown when application violates usage of EMA interfaces.
OmmException is a parent class for all exception types thrown by EMA.
Definition: OmmException.h:45