BLPAPI C++ 3.26.6
Loading...
Searching...
No Matches
blpapi_error.h
Go to the documentation of this file.
1/* Copyright 2012. Bloomberg Finance L.P.
2 *
3 * Permission is hereby granted, free of charge, to any person obtaining a copy
4 * of this software and associated documentation files (the "Software"), to
5 * deal in the Software without restriction, including without limitation the
6 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
7 * sell copies of the Software, and to permit persons to whom the Software is
8 * furnished to do so, subject to the following conditions: The above
9 * copyright notice and this permission notice shall be included in all copies
10 * or substantial portions of the Software.
11 *
12 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
17 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
18 * IN THE SOFTWARE.
19 */
20
37
38#ifndef INCLUDED_BLPAPI_ERROR
39#define INCLUDED_BLPAPI_ERROR
40
56
57#ifndef INCLUDED_BLPAPI_DEFS
58#include <blpapi_defs.h>
59#endif
60
62
65
75#define BLPAPI_RESULTCODE(res) ((res) & 0xffff)
76
86#define BLPAPI_RESULTCLASS(res) ((res) & 0xff0000)
87
89#define BLPAPI_UNKNOWN_CLASS 0x00000
90
93#define BLPAPI_INVALIDSTATE_CLASS 0x10000
94
96#define BLPAPI_INVALIDARG_CLASS 0x20000
97
99#define BLPAPI_IOERROR_CLASS 0x30000
100
103#define BLPAPI_CNVERROR_CLASS 0x40000
104
106#define BLPAPI_BOUNDSERROR_CLASS 0x50000
107
109#define BLPAPI_NOTFOUND_CLASS 0x60000
110
113#define BLPAPI_FLDNOTFOUND_CLASS 0x70000
114
116#define BLPAPI_UNSUPPORTED_CLASS 0x80000
117
119#define BLPAPI_ERROR_UNKNOWN (BLPAPI_UNKNOWN_CLASS | 1)
120
122#define BLPAPI_ERROR_ILLEGAL_ARG (BLPAPI_INVALIDARG_CLASS | 2)
123
125#define BLPAPI_ERROR_ILLEGAL_ACCESS (BLPAPI_UNSUPPORTED_CLASS | 3)
126
128#define BLPAPI_ERROR_INVALID_SESSION (BLPAPI_INVALIDARG_CLASS | 4)
129
131#define BLPAPI_ERROR_DUPLICATE_CORRELATIONID (BLPAPI_INVALIDARG_CLASS | 5)
132
134#define BLPAPI_ERROR_INTERNAL_ERROR (BLPAPI_UNKNOWN_CLASS | 6)
135
137#define BLPAPI_ERROR_RESOLVE_FAILED (BLPAPI_IOERROR_CLASS | 7)
138
141#define BLPAPI_ERROR_CONNECT_FAILED (BLPAPI_IOERROR_CLASS | 8)
142
145#define BLPAPI_ERROR_ILLEGAL_STATE (BLPAPI_INVALIDSTATE_CLASS | 9)
146
148#define BLPAPI_ERROR_CODEC_FAILURE (BLPAPI_UNKNOWN_CLASS | 10)
149
151#define BLPAPI_ERROR_INDEX_OUT_OF_RANGE (BLPAPI_BOUNDSERROR_CLASS | 11)
152
154#define BLPAPI_ERROR_INVALID_CONVERSION (BLPAPI_CNVERROR_CLASS | 12)
155
157#define BLPAPI_ERROR_ITEM_NOT_FOUND (BLPAPI_NOTFOUND_CLASS | 13)
158
160#define BLPAPI_ERROR_IO_ERROR (BLPAPI_IOERROR_CLASS | 14)
161
163#define BLPAPI_ERROR_CORRELATION_NOT_FOUND (BLPAPI_NOTFOUND_CLASS | 15)
164
166#define BLPAPI_ERROR_SERVICE_NOT_FOUND (BLPAPI_NOTFOUND_CLASS | 16)
167
169#define BLPAPI_ERROR_LOGON_LOOKUP_FAILED (BLPAPI_UNKNOWN_CLASS | 17)
170
172#define BLPAPI_ERROR_DS_LOOKUP_FAILED (BLPAPI_UNKNOWN_CLASS | 18)
173
176#define BLPAPI_ERROR_UNSUPPORTED_OPERATION (BLPAPI_UNSUPPORTED_CLASS | 19)
177
179#define BLPAPI_ERROR_DS_PROPERTY_NOT_FOUND (BLPAPI_NOTFOUND_CLASS | 20)
180
182#define BLPAPI_ERROR_MSG_TOO_LARGE (BLPAPI_INVALIDARG_CLASS | 21)
183
186
187#ifdef __cplusplus
188extern "C" {
189#endif
190
192
195
208BLPAPI_EXPORT
209const char *blpapi_getLastErrorDescription(int resultCode);
210
213
214#ifdef __cplusplus
215}
216
217namespace BloombergLP {
218namespace blpapi {
219
220} // close namespace blpapi
221} // close namespace BloombergLP
222
223#endif
224
225#endif // #ifndef INCLUDED_BLPAPI_ERROR
Common definitions used by the library.
Definition blpapi_abstractsession.h:452
Definition blpapi_abstractsession.h:451