ifm3dpy.device.Error

class ifm3dpy.device.Error

Bases: RuntimeError

Exception wrapper for library and system errors encountered by the library.

**Error Codes*

IFM3D_NO_ERRORS

IFM3D_XMLRPC_FAILURE

IFM3D_XMLRPC_TIMEOUT

IFM3D_JSON_ERROR

IFM3D_NO_ACTIVE_APPLICATION

IFM3D_SUBCOMMAND_ERROR

IFM3D_IO_ERROR

IFM3D_THREAD_INTERRUPTED

IFM3D_PCIC_BAD_REPLY

IFM3D_UNSUPPORTED_OP

IFM3D_IMG_CHUNK_NOT_FOUND

IFM3D_PIXEL_FORMAT_ERROR

IFM3D_UNSUPPORTED_DEVICE

IFM3D_RECOVERY_CONNECTION_ERROR

IFM3D_UPDATE_ERROR

IFM3D_PCICCLIENT_UNSUPPORTED_DEVICE

IFM3D_HEADER_VERSION_MISMATCH

IFM3D_INTRINSIC_CALIBRATION_UNSUPPORTED_DEVICE

IFM3D_INTRINSIC_CALIBRATION_UNSUPPORTED_FIRMWARE

IFM3D_INVERSE_INTRINSIC_CALIBRATION_UNSUPPORTED_DEVICE

IFM3D_INVERSE_INTRINSIC_CALIBRATION_UNSUPPORTED_FIRMWARE

IFM3D_CURL_ERROR

IFM3D_CURL_TIMEOUT

IFM3D_CURL_ABORTED

IFM3D_SWUPDATE_BAD_STATE

IFM3D_CONFIDENCE_IMAGE_FORMAT_NOT_SUPPORTED

IFM3D_DISTANCE_NOISE_IMAGE_UNSUPPORTED_DEVICE

IFM3D_DISTANCE_NOISE_IMAGE_UNSUPPORTED_FIRMWARE

IFM3D_INVALID_PORT

IFM3D_TOOL_COMMAND_UNSUPPORTED_DEVICE

IFM3D_UNSUPPORTED_SCHEMA_ON_DEVICE

IFM3D_BUFFER_ID_NOT_AVAILABLE

IFM3D_NETWORK_ERROR

IFM3D_SYSTEM_ERROR

IFM3D_CORRUPTED_STRUCT

IFM3D_DEVICE_PORT_INCOMPATIBLE_WITH_ORGANIZER

IFM3D_DEVICE_PORT_NOT_SUPPORTED

IFM3D_XMLRPC_OBJ_NOT_FOUND

IFM3D_INVALID_PARAM

IFM3D_INVALID_VALUE_TYPE

IFM3D_VALUE_OUT_OF_RANGE

IFM3D_READONLY_PARAM

IFM3D_SESSION_ALREADY_ACTIVE

IFM3D_INVALID_PASSWORD

IFM3D_INVALID_SESSIONID

IFM3D_COULD_NOT_REBOOT

IFM3D_INVALID_FORMAT

IFM3D_INVALID_DEVICE_TYPE

IFM3D_INVALID_IMPORT_FLAGS

IFM3D_INVALID_APP_INDEX

IFM3D_APP_IN_EDIT_MODE

IFM3D_MAX_APP_LIMIT

IFM3D_NO_APP_IN_EDIT_MODE

IFM3D_CANNOT_SW_TRIGGER

IFM3D_INVALID_IMAGER_TYPE

IFM3D_UNSUPPORTED_APP_TYPE

IFM3D_PIN_ALREADY_IN_USE

IFM3D_NO_SUCH_MODEL_OR_ROI

IFM3D_TEMPORAL_FILTER_TRIGGER_CONFLICT

IFM3D_EEPROM_FAIL

IFM3D_IMPORT_EXPORT_IN_PROGRESS

IFM3D_INVALID_NET_CONFIG

IFM3D_LED_DUTY_CYCLE_VIOLATION

IFM3D_AUTO_EXPOSURE_NOT_SUPPORTED

IFM3D_INVALID_FIRMWARE_VERSION

IFM3D_PROXY_AUTH_REQUIRED

IFM3D_PIXEL_FORMAT_NOT_SUPPORTED

__init__(self, code: int, msg: str, what: str) None

Create a Error with the given code, message and what.

property code

Error Code

property message

Exception message

property what

String representation of the error including the error code and optionally the message

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.