BLPAPI C++  3.24.6
blpapi_error.h File Reference

Provide a collection of errors that library can return. More...

#include <blpapi_defs.h>

Go to the source code of this file.

Namespaces

 BloombergLP
 
 BloombergLP::blpapi
 

Macros

#define BLPAPI_RESULTCODE(res)   ((res) & 0xffff)
 
#define BLPAPI_RESULTCLASS(res)   ((res) & 0xff0000)
 
#define BLPAPI_UNKNOWN_CLASS   0x00000
 
#define BLPAPI_INVALIDSTATE_CLASS   0x10000
 
#define BLPAPI_INVALIDARG_CLASS   0x20000
 
#define BLPAPI_IOERROR_CLASS   0x30000
 
#define BLPAPI_CNVERROR_CLASS   0x40000
 
#define BLPAPI_BOUNDSERROR_CLASS   0x50000
 
#define BLPAPI_NOTFOUND_CLASS   0x60000
 
#define BLPAPI_FLDNOTFOUND_CLASS   0x70000
 
#define BLPAPI_UNSUPPORTED_CLASS   0x80000
 
#define BLPAPI_ERROR_UNKNOWN   (BLPAPI_UNKNOWN_CLASS | 1)
 
#define BLPAPI_ERROR_ILLEGAL_ARG   (BLPAPI_INVALIDARG_CLASS | 2)
 
#define BLPAPI_ERROR_ILLEGAL_ACCESS   (BLPAPI_UNSUPPORTED_CLASS | 3)
 
#define BLPAPI_ERROR_INVALID_SESSION   (BLPAPI_INVALIDARG_CLASS | 4)
 
#define BLPAPI_ERROR_DUPLICATE_CORRELATIONID   (BLPAPI_INVALIDARG_CLASS | 5)
 
#define BLPAPI_ERROR_INTERNAL_ERROR   (BLPAPI_UNKNOWN_CLASS | 6)
 
#define BLPAPI_ERROR_RESOLVE_FAILED   (BLPAPI_IOERROR_CLASS | 7)
 
#define BLPAPI_ERROR_CONNECT_FAILED   (BLPAPI_IOERROR_CLASS | 8)
 
#define BLPAPI_ERROR_ILLEGAL_STATE   (BLPAPI_INVALIDSTATE_CLASS | 9)
 
#define BLPAPI_ERROR_CODEC_FAILURE   (BLPAPI_UNKNOWN_CLASS | 10)
 
#define BLPAPI_ERROR_INDEX_OUT_OF_RANGE   (BLPAPI_BOUNDSERROR_CLASS | 11)
 
#define BLPAPI_ERROR_INVALID_CONVERSION   (BLPAPI_CNVERROR_CLASS | 12)
 
#define BLPAPI_ERROR_ITEM_NOT_FOUND   (BLPAPI_NOTFOUND_CLASS | 13)
 
#define BLPAPI_ERROR_IO_ERROR   (BLPAPI_IOERROR_CLASS | 14)
 
#define BLPAPI_ERROR_CORRELATION_NOT_FOUND   (BLPAPI_NOTFOUND_CLASS | 15)
 
#define BLPAPI_ERROR_SERVICE_NOT_FOUND   (BLPAPI_NOTFOUND_CLASS | 16)
 
#define BLPAPI_ERROR_LOGON_LOOKUP_FAILED   (BLPAPI_UNKNOWN_CLASS | 17)
 
#define BLPAPI_ERROR_DS_LOOKUP_FAILED   (BLPAPI_UNKNOWN_CLASS | 18)
 
#define BLPAPI_ERROR_UNSUPPORTED_OPERATION   (BLPAPI_UNSUPPORTED_CLASS | 19)
 
#define BLPAPI_ERROR_DS_PROPERTY_NOT_FOUND   (BLPAPI_NOTFOUND_CLASS | 20)
 
#define BLPAPI_ERROR_MSG_TOO_LARGE   (BLPAPI_INVALIDARG_CLASS | 21)
 

Functions

const char * blpapi_getLastErrorDescription (int resultCode)
 

Detailed Description

Provide a collection of errors that library can return.

Macro Definition Documentation

◆ BLPAPI_BOUNDSERROR_CLASS

#define BLPAPI_BOUNDSERROR_CLASS   0x50000

◆ BLPAPI_CNVERROR_CLASS

#define BLPAPI_CNVERROR_CLASS   0x40000

◆ BLPAPI_ERROR_CODEC_FAILURE

#define BLPAPI_ERROR_CODEC_FAILURE   (BLPAPI_UNKNOWN_CLASS | 10)

◆ BLPAPI_ERROR_CONNECT_FAILED

#define BLPAPI_ERROR_CONNECT_FAILED   (BLPAPI_IOERROR_CLASS | 8)

◆ BLPAPI_ERROR_CORRELATION_NOT_FOUND

#define BLPAPI_ERROR_CORRELATION_NOT_FOUND   (BLPAPI_NOTFOUND_CLASS | 15)

◆ BLPAPI_ERROR_DS_LOOKUP_FAILED

#define BLPAPI_ERROR_DS_LOOKUP_FAILED   (BLPAPI_UNKNOWN_CLASS | 18)

◆ BLPAPI_ERROR_DS_PROPERTY_NOT_FOUND

#define BLPAPI_ERROR_DS_PROPERTY_NOT_FOUND   (BLPAPI_NOTFOUND_CLASS | 20)

◆ BLPAPI_ERROR_DUPLICATE_CORRELATIONID

#define BLPAPI_ERROR_DUPLICATE_CORRELATIONID   (BLPAPI_INVALIDARG_CLASS | 5)

◆ BLPAPI_ERROR_ILLEGAL_ACCESS

#define BLPAPI_ERROR_ILLEGAL_ACCESS   (BLPAPI_UNSUPPORTED_CLASS | 3)

◆ BLPAPI_ERROR_ILLEGAL_ARG

#define BLPAPI_ERROR_ILLEGAL_ARG   (BLPAPI_INVALIDARG_CLASS | 2)

◆ BLPAPI_ERROR_ILLEGAL_STATE

#define BLPAPI_ERROR_ILLEGAL_STATE   (BLPAPI_INVALIDSTATE_CLASS | 9)

◆ BLPAPI_ERROR_INDEX_OUT_OF_RANGE

#define BLPAPI_ERROR_INDEX_OUT_OF_RANGE   (BLPAPI_BOUNDSERROR_CLASS | 11)

◆ BLPAPI_ERROR_INTERNAL_ERROR

#define BLPAPI_ERROR_INTERNAL_ERROR   (BLPAPI_UNKNOWN_CLASS | 6)

◆ BLPAPI_ERROR_INVALID_CONVERSION

#define BLPAPI_ERROR_INVALID_CONVERSION   (BLPAPI_CNVERROR_CLASS | 12)

◆ BLPAPI_ERROR_INVALID_SESSION

#define BLPAPI_ERROR_INVALID_SESSION   (BLPAPI_INVALIDARG_CLASS | 4)

◆ BLPAPI_ERROR_IO_ERROR

#define BLPAPI_ERROR_IO_ERROR   (BLPAPI_IOERROR_CLASS | 14)

◆ BLPAPI_ERROR_ITEM_NOT_FOUND

#define BLPAPI_ERROR_ITEM_NOT_FOUND   (BLPAPI_NOTFOUND_CLASS | 13)

◆ BLPAPI_ERROR_LOGON_LOOKUP_FAILED

#define BLPAPI_ERROR_LOGON_LOOKUP_FAILED   (BLPAPI_UNKNOWN_CLASS | 17)

◆ BLPAPI_ERROR_MSG_TOO_LARGE

#define BLPAPI_ERROR_MSG_TOO_LARGE   (BLPAPI_INVALIDARG_CLASS | 21)

◆ BLPAPI_ERROR_RESOLVE_FAILED

#define BLPAPI_ERROR_RESOLVE_FAILED   (BLPAPI_IOERROR_CLASS | 7)

◆ BLPAPI_ERROR_SERVICE_NOT_FOUND

#define BLPAPI_ERROR_SERVICE_NOT_FOUND   (BLPAPI_NOTFOUND_CLASS | 16)

◆ BLPAPI_ERROR_UNKNOWN

#define BLPAPI_ERROR_UNKNOWN   (BLPAPI_UNKNOWN_CLASS | 1)

◆ BLPAPI_ERROR_UNSUPPORTED_OPERATION

#define BLPAPI_ERROR_UNSUPPORTED_OPERATION   (BLPAPI_UNSUPPORTED_CLASS | 19)

◆ BLPAPI_FLDNOTFOUND_CLASS

#define BLPAPI_FLDNOTFOUND_CLASS   0x70000

◆ BLPAPI_INVALIDARG_CLASS

#define BLPAPI_INVALIDARG_CLASS   0x20000

◆ BLPAPI_INVALIDSTATE_CLASS

#define BLPAPI_INVALIDSTATE_CLASS   0x10000

◆ BLPAPI_IOERROR_CLASS

#define BLPAPI_IOERROR_CLASS   0x30000

◆ BLPAPI_NOTFOUND_CLASS

#define BLPAPI_NOTFOUND_CLASS   0x60000

◆ BLPAPI_RESULTCLASS

#define BLPAPI_RESULTCLASS (   res)    ((res) & 0xff0000)

◆ BLPAPI_RESULTCODE

#define BLPAPI_RESULTCODE (   res)    ((res) & 0xffff)

◆ BLPAPI_UNKNOWN_CLASS

#define BLPAPI_UNKNOWN_CLASS   0x00000

◆ BLPAPI_UNSUPPORTED_CLASS

#define BLPAPI_UNSUPPORTED_CLASS   0x80000

Function Documentation

◆ blpapi_getLastErrorDescription()

const char* blpapi_getLastErrorDescription ( int  resultCode)