Skip to content

GenApiCError.h

Error codes for GenApi C bindings.

Defines#

Value Name
((GENAPIC_RESULT) 0xC2000001) GENAPI_E_FAIL
((GENAPIC_RESULT) 0xC200000C) GENAPI_E_INDEX_ERROR
((GENAPIC_RESULT) 0xC2000003) GENAPI_E_INSUFFICIENT_BUFFER
((GENAPIC_RESULT) 0xC2000002) GENAPI_E_INVALID_ARG
((GENAPIC_RESULT) 0xC2000011) GENAPI_E_INVALID_FILEHANDLE
((GENAPIC_RESULT) 0xC200000F) GENAPI_E_INVALID_NODECALLBACKHANDLE
((GENAPIC_RESULT) 0xC2000006) GENAPI_E_INVALID_NODEHANDLE
((GENAPIC_RESULT) 0xC2000004) GENAPI_E_INVALID_NODEMAPHANDLE
((GENAPIC_RESULT) 0xC2000008) GENAPI_E_LIMITS_EXCEEDED
((GENAPIC_RESULT) 0xC2000010) GENAPI_E_LOGICAL_ERROR
((GENAPIC_RESULT) 0xC2000005) GENAPI_E_NODE_NOT_FOUND
((GENAPIC_RESULT) 0xC200000E) GENAPI_E_OBJECT_ILLEGAL_STATE
((GENAPIC_RESULT) 0) GENAPI_E_OK
((GENAPIC_RESULT) 0xC2000009) GENAPI_E_PROPERTY_ERROR
((GENAPIC_RESULT) 0xC2000007) GENAPI_E_RESULT_RANGE_EXCEEDED
((GENAPIC_RESULT) 0xC200000A) GENAPI_E_TIMEOUT
((GENAPIC_RESULT) 0xC200000B) GENAPI_E_TYPE_ERROR
HRESULT GENAPIC_RESULT

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 GENAPIC_RESULT#

#define GENAPIC_RESULT HRESULT

Source code#

/*-----------------------------------------------------------------------------
    Basler pylon C SDK
    Copyright (c) 2009-2022 Basler AG
    http://www.baslerweb.com
    Author:  AH, TK
-----------------------------------------------------------------------------*/

#ifndef GENAPICERROR_H_INCLUDED
#define GENAPICERROR_H_INCLUDED

/*
 * TODO: Define a more elaborate numbering scheme
 * TODO: Map to HRESULTS when library is built for usage with type library
 */

#define GENAPIC_RESULT HRESULT

#define GENAPI_E_OK                         ((GENAPIC_RESULT) 0)           
#define GENAPI_E_FAIL                       ((GENAPIC_RESULT) 0xC2000001)  
#define GENAPI_E_INVALID_ARG                ((GENAPIC_RESULT) 0xC2000002)  
#define GENAPI_E_INSUFFICIENT_BUFFER        ((GENAPIC_RESULT) 0xC2000003)  
#define GENAPI_E_INVALID_NODEMAPHANDLE      ((GENAPIC_RESULT) 0xC2000004)  
#define GENAPI_E_NODE_NOT_FOUND             ((GENAPIC_RESULT) 0xC2000005)  
#define GENAPI_E_INVALID_NODEHANDLE         ((GENAPIC_RESULT) 0xC2000006)  
#define GENAPI_E_RESULT_RANGE_EXCEEDED      ((GENAPIC_RESULT) 0xC2000007)  
#define GENAPI_E_LIMITS_EXCEEDED            ((GENAPIC_RESULT) 0xC2000008)  
#define GENAPI_E_PROPERTY_ERROR             ((GENAPIC_RESULT) 0xC2000009)  
#define GENAPI_E_TIMEOUT                    ((GENAPIC_RESULT) 0xC200000A)  
#define GENAPI_E_TYPE_ERROR                 ((GENAPIC_RESULT) 0xC200000B)  
#define GENAPI_E_INDEX_ERROR                ((GENAPIC_RESULT) 0xC200000C)  
/*                                                            0xC200000D        left out intentionally */
#define GENAPI_E_OBJECT_ILLEGAL_STATE       ((GENAPIC_RESULT) 0xC200000E)  
#define GENAPI_E_INVALID_NODECALLBACKHANDLE ((GENAPIC_RESULT) 0xC200000F)  
#define GENAPI_E_LOGICAL_ERROR              ((GENAPIC_RESULT) 0xC2000010)  
#define GENAPI_E_INVALID_FILEHANDLE         ((GENAPIC_RESULT) 0xC2000011)  
#endif

Updated on 5 July 2022 at 12:01:38