ErrorCode.h 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. #ifndef __GENICAM_ERROR_CODE_H__
  2. #define __GENICAM_ERROR_CODE_H__
  3. #include "GenICam/Defs.h"
  4. GENICAM_NAMESPACE_BEGIN
  5. /// \~chinese
  6. /// \brief SDK错误类型
  7. ///< 外部应用程序调用SDK接口失败后,可调用 Dahua::Infra::getLastError 获取具体的错误码
  8. ///< 可调用 Dahua::Infra::getErrMsg 获取具体的错误号对应的错误描述信息
  9. /// \~english
  10. /// \brief SDK error type; Once external application failed calling SDK interfaces, then users can call Dahua::Infra::getLastError to get detailed error code;Users may also call Dahua::Infra::getErrMsg to get detailed error message
  11. #define ERROR_UNKNOW ( 0x10000000 )
  12. #define ERROR_UNKNOW_DES "unknow error"
  13. #define ERROR_MALLOC_MEMORY_FAIL ( 0x10000001 )
  14. #define ERROR_MALLOC_MEMORY_FAIL_DES "malloc memory fail"
  15. #define ERROR_CAMERA_OFFLINE ( 0x10000002 )
  16. #define ERROR_CAMERA_OFFLINE_DES "camera offline"
  17. #define ERROR_CAMERA_IS_NOT_GIGE ( 0x10000003 )
  18. #define ERROR_CAMERA_IS_NOT_GIGE_DES "the camera is not gige"
  19. #define ERROR_LOAD_XML_FAIL ( 0x10000004 )
  20. #define ERROR_LOAD_XML_FAIL_DES "load xml fail"
  21. #define ERROR_CAMERA_HAS_BEEN_OPENED ( 0x10000005 )
  22. #define ERROR_CAMERA_HAS_BEEN_OPENED_DES "the camera has been opened"
  23. #define ERROR_CAMERA_HAS_NOT_BEEN_OPENED ( 0x10000006 )
  24. #define ERROR_CAMERA_HAS_NOT_BEEN_OPENED_DES "the camera has not been opened"
  25. #define ERROR_PARAM_IS_INVALID ( 0x10000007 )
  26. #define ERROR_PARAM_IS_INVALID_DES "param is invalid"
  27. #define ERROR_ATTRIBUTE_IS_INVALID ( 0x10000008 )
  28. #define ERROR_ATTRIBUTE_IS_INVALID_DES "attribute is invalid"
  29. #define ERROR_CAMERA_IS_GRABBING ( 0x10000009 )
  30. #define ERROR_CAMERA_IS_GRABBING_DES "the camera is grabbing"
  31. #define ERROR_CAMERA_IS_NOT_GRABBING ( 0x1000000a )
  32. #define ERROR_CAMERA_IS_NOT_GRABBING_DES "the camera is not grabbing"
  33. #define ERROR_FRAME_QUEUE_IS_EMPTY ( 0x1000000b )
  34. #define ERROR_FRAME_QUEUE_IS_EMPTY_DES "the frame queue is empty"
  35. #define ERROR_FUNCTION_HAS_BEEN_ATTACHED ( 0x1000000c )
  36. #define ERROR_FUNCTION_HAS_BEEN_ATTACHED_DES "the function has been attached"
  37. #define ERROR_FUNCTION_HAS_NOT_BEEN_ATTACHED ( 0x1000000d )
  38. #define ERROR_FUNCTION_HAS_NOT_BEEN_ATTACHED_DES "the function has not been attached"
  39. #define ERROR_CREATE_XML_FILE_FAIL ( 0x1000000e )
  40. #define ERROR_CREATE_XML_FILE_FAIL_DES "create xml file fail"
  41. #define ERROR_IS_NOT_COMMON_ATTRIBUTE ( 0x1000000f )
  42. #define ERROR_IS_NOT_COMMON_ATTRIBUTE_DES "is not common attribute"
  43. #define ERROR_CONFIG_FILE_IS_NOT_EXIST ( 0x10000010 )
  44. #define ERROR_CONFIG_FILE_IS_NOT_EXIST_DES "the config file is not exist"
  45. #define ERROR_CONFIG_FILE_FORMAT ( 0x10000011 )
  46. #define ERROR_CONFIG_FILE_FORMAT_DES "the config file format is error"
  47. #define ERROR_LOAD_ATTRIBUTE_FAIL ( 0x10000012 )
  48. #define ERROR_LOAD_ATTRIBUTE_FAIL_DES "load attribute fail"
  49. GENICAM_NAMESPACE_END
  50. #endif //__GENICAM_ERROR_CODE_H__