Error Handling
This section contains information about how errors are reported by the IC Imaging Control 4 Python Library.
All functions raise an exception in case of an error, unless they specifically don’t, e.g. QueueSink.try_pop_output_buffer() or PropertyMap.try_set_value().
Standard Exception Types
In situations where a matching standard Python exception type exists, functions can throw standard exceptions such as
TypeError
RuntimeError
IC4Exception
Error conditions specific to the IC Imaging Control 4 Python Library are raised as a IC4Exception. The IC4Exception.code property identifies the kind of error that occurred, while IC4Exception.message contains a text describing the error in more detail.