Skip to content

ErrorCodes#

Error codes returned by any of the pylon C API functions. More…

Defines#

Name
GENAPI_E_FAIL
GENAPI_E_INDEX_ERROR
GENAPI_E_INSUFFICIENT_BUFFER
GENAPI_E_INVALID_ARG
GENAPI_E_INVALID_FILEHANDLE
GENAPI_E_INVALID_NODECALLBACKHANDLE
GENAPI_E_INVALID_NODEHANDLE
GENAPI_E_INVALID_NODEMAPHANDLE
GENAPI_E_LIMITS_EXCEEDED
GENAPI_E_LOGICAL_ERROR
GENAPI_E_NODE_NOT_FOUND
GENAPI_E_OBJECT_ILLEGAL_STATE
GENAPI_E_OK
GENAPI_E_PROPERTY_ERROR
GENAPI_E_RESULT_RANGE_EXCEEDED
GENAPI_E_TIMEOUT
GENAPI_E_TYPE_ERROR
PYLON_E_INVALID_AVIWRITERHANDLE
PYLON_E_INVALID_CHUNKPARSERHANDLE
PYLON_E_INVALID_CONVERTERHANDLE
PYLON_E_INVALID_DECOMPRESSORHANDLE
PYLON_E_INVALID_DEVICEHANDLE
PYLON_E_INVALID_DEVICEINFO_PROPERTY
PYLON_E_INVALID_DEVICEINFOHANDLE
PYLON_E_INVALID_EVENTADAPTERHANDLE
PYLON_E_INVALID_EVENTGRABBERHANDLE
PYLON_E_INVALID_INTERFACEHANDLE
PYLON_E_INVALID_INTERFACEINFOHANDLE
PYLON_E_INVALID_STREAMGRABBERHANDLE
PYLON_E_INVALID_WAITOBJECTHANDLE
PYLON_E_INVALID_WAITOBJECTSHANDLE

Detailed Description#

Error codes returned by any of the pylon C API functions.

Note If a function returns an error, you must call GenApiGetLastErrorMessage() and/or GenApiGetLastErrorDetail() directly after you received the error. Calling other functions will either reset or overwrite the error text.

These error codes can be returned from any of the pylon C API functions.

To get a textual representation for the error code you can call GenApiGetLastErrorMessage().

To get a detailed error description you can call GenApiGetLastErrorDetail(). The string returned will contain the specific reason why the call has failed.

Macros Documentation#

define GENAPI_E_FAIL#

#define GENAPI_E_FAIL ((GENAPIC_RESULT) 0xC2000001)

Unspecified error occurred. Call GenApiGetLastErrorDetail() for more information about the error.

define GENAPI_E_INDEX_ERROR#

#define GENAPI_E_INDEX_ERROR ((GENAPIC_RESULT) 0xC200000C)

An index is out of range.

define GENAPI_E_INSUFFICIENT_BUFFER#

#define GENAPI_E_INSUFFICIENT_BUFFER ((GENAPIC_RESULT) 0xC2000003)

Buffer size passed is less than required.

define GENAPI_E_INVALID_ARG#

#define GENAPI_E_INVALID_ARG ((GENAPIC_RESULT) 0xC2000002)

Function called with invalid argument.

define GENAPI_E_INVALID_FILEHANDLE#

#define GENAPI_E_INVALID_FILEHANDLE ((GENAPIC_RESULT) 0xC2000011)

An invalid file handle has been passed.

define GENAPI_E_INVALID_NODECALLBACKHANDLE#

#define GENAPI_E_INVALID_NODECALLBACKHANDLE ((GENAPIC_RESULT) 0xC200000F)

An invalid callback handle has been passed.

define GENAPI_E_INVALID_NODEHANDLE#

#define GENAPI_E_INVALID_NODEHANDLE ((GENAPIC_RESULT) 0xC2000006)

An invalid node handle has been passed.

define GENAPI_E_INVALID_NODEMAPHANDLE#

#define GENAPI_E_INVALID_NODEMAPHANDLE ((GENAPIC_RESULT) 0xC2000004)

An invalid node map handle has been passed.

define GENAPI_E_LIMITS_EXCEEDED#

#define GENAPI_E_LIMITS_EXCEEDED ((GENAPIC_RESULT) 0xC2000008)

The value exceeds the valid range.

define GENAPI_E_LOGICAL_ERROR#

#define GENAPI_E_LOGICAL_ERROR ((GENAPIC_RESULT) 0xC2000010)

Program logic error. Call GenApiGetLastErrorDetail() for more information about the error.

define GENAPI_E_NODE_NOT_FOUND#

#define GENAPI_E_NODE_NOT_FOUND ((GENAPIC_RESULT) 0xC2000005)

Specified node not found in node map.

define GENAPI_E_OBJECT_ILLEGAL_STATE#

#define GENAPI_E_OBJECT_ILLEGAL_STATE ((GENAPIC_RESULT) 0xC200000E)

Object state illegal for operation. Call GenApiGetLastErrorDetail() for more information about the error.

define GENAPI_E_OK#

#define GENAPI_E_OK ((GENAPIC_RESULT) 0)

Operation completed successfully.

define GENAPI_E_PROPERTY_ERROR#

#define GENAPI_E_PROPERTY_ERROR ((GENAPIC_RESULT) 0xC2000009)

Generic GenICam property error occurred. Call GenApiGetLastErrorDetail() for more information about the error.

define GENAPI_E_RESULT_RANGE_EXCEEDED#

#define GENAPI_E_RESULT_RANGE_EXCEEDED ((GENAPIC_RESULT) 0xC2000007)

A 64 bit result will be truncated if returned as a 32 bit value.

define GENAPI_E_TIMEOUT#

#define GENAPI_E_TIMEOUT ((GENAPIC_RESULT) 0xC200000A)

Timeout expired.

define GENAPI_E_TYPE_ERROR#

#define GENAPI_E_TYPE_ERROR ((GENAPIC_RESULT) 0xC200000B)

Expression has wrong type.

define PYLON_E_INVALID_AVIWRITERHANDLE#

#define PYLON_E_INVALID_AVIWRITERHANDLE ((GENAPIC_RESULT) 0xC300000B)

An invalid AVI writer handle has been passed.

define PYLON_E_INVALID_CHUNKPARSERHANDLE#

#define PYLON_E_INVALID_CHUNKPARSERHANDLE ((GENAPIC_RESULT) 0xC3000005)

An invalid ChunkParser handle has been passed.

define PYLON_E_INVALID_CONVERTERHANDLE#

#define PYLON_E_INVALID_CONVERTERHANDLE ((GENAPIC_RESULT) 0xC3000009)

An invalid Converter handle has been passed.

define PYLON_E_INVALID_DECOMPRESSORHANDLE#

#define PYLON_E_INVALID_DECOMPRESSORHANDLE ((GENAPIC_RESULT) 0xC300000E)

An invalid decompressor handle has been passed.

define PYLON_E_INVALID_DEVICEHANDLE#

#define PYLON_E_INVALID_DEVICEHANDLE ((GENAPIC_RESULT) 0xC3000001)

An invalid Device handle has been passed.

define PYLON_E_INVALID_DEVICEINFO_PROPERTY#

#define PYLON_E_INVALID_DEVICEINFO_PROPERTY ((GENAPIC_RESULT) 0xC3000003)

An invalid DeviceInfoProperty handle has been passed.

define PYLON_E_INVALID_DEVICEINFOHANDLE#

#define PYLON_E_INVALID_DEVICEINFOHANDLE ((GENAPIC_RESULT) 0xC3000002)

An invalid DeviceInfo handle has been passed.

define PYLON_E_INVALID_EVENTADAPTERHANDLE#

#define PYLON_E_INVALID_EVENTADAPTERHANDLE ((GENAPIC_RESULT) 0xC3000008)

An invalid EventAdapter handle has been passed.

define PYLON_E_INVALID_EVENTGRABBERHANDLE#

#define PYLON_E_INVALID_EVENTGRABBERHANDLE ((GENAPIC_RESULT) 0xC3000007)

An invalid EventGrabber handle has been passed.

define PYLON_E_INVALID_INTERFACEHANDLE#

#define PYLON_E_INVALID_INTERFACEHANDLE ((GENAPIC_RESULT) 0xC300000C)

An invalid Interface handle has been passed.

define PYLON_E_INVALID_INTERFACEINFOHANDLE#

#define PYLON_E_INVALID_INTERFACEINFOHANDLE ((GENAPIC_RESULT) 0xC300000D)

An invalid InterfaceInfo handle has been passed.

define PYLON_E_INVALID_STREAMGRABBERHANDLE#

#define PYLON_E_INVALID_STREAMGRABBERHANDLE ((GENAPIC_RESULT) 0xC3000004)

An invalid StreamGrabber handle has been passed.

define PYLON_E_INVALID_WAITOBJECTHANDLE#

#define PYLON_E_INVALID_WAITOBJECTHANDLE ((GENAPIC_RESULT) 0xC3000006)

An invalid WaitObject handle has been passed.

define PYLON_E_INVALID_WAITOBJECTSHANDLE#

#define PYLON_E_INVALID_WAITOBJECTSHANDLE ((GENAPIC_RESULT) 0xC300000A)

An invalid WaitObjects handle has been passed.