These are the pre-v12 classes, kept so existing code keeps building. New code should use the modern API — see Migration Guide: v11 to v12.
optris::DeviceBusyException
The camera would not carry the operation out, and may next time.
Raised where a device call fails for a reason that is not the caller's request and is not permanent: the V4L2 EIO a camera returns while the previous stream is still tearing down is the one this exists for. The SDK already retries that with a backoff; this is what is left when the retries run out.
It is deliberately NOT a configuration error. "Failed to set video input format: Input/output error [5]" after four attempts means the hardware did not complete a switch it accepts; nothing about the request was wrong, and the same call a moment later usually succeeds. Reporting it as a configuration error sends the reader to check the mode they asked for, which is the one thing that is fine.
Reaches the v12 API as optris::sdk::DeviceBusyException, the C ABI as OPTRIS_SDK_ERROR_BUSY and C# as DeviceBusyException.
Carries what refused. The layer above rebuilds a fresh v12 exception from what it catches, so a cause decided here and not carried here is a cause that cannot reach a caller.
Inherits from optris::SDKException.
Public functions
DeviceBusyException
DeviceBusyException(std::string message, ::optris::sdk::DeviceBusyDetail detail) noexcept
Construct carrying what refused.
Parameters
| Name | Description |
|---|---|
message |
error message. |
detail |
which condition refused, and what it knew. |
detail
const ::optris::sdk::DeviceBusyDetail & detail() const noexcept
What refused. kUnknown when this site does not say.
SDKException
SDKException() noexcept=default
Constructor.
SDKException
SDKException(std::string message) noexcept
Constructor.
Parameters
| Name | Description |
|---|---|
message |
error message. |