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::OperationModeUnavailableException
The caller named an operation mode this camera does not have.
The counterpart to DeviceBusyException above, and it exists for the opposite reason: this one IS the caller's request, it is permanent, and repeating the call cannot change the answer. A camera's modes come from its calibration, so a mode that is not among them will not appear on a second attempt.
That distinction is load-bearing twice over. Opening a camera over USB retries ten times at 500 ms, which is right for a camera that is not ready and absurd for a request that is wrong -- five seconds spent re-asking a question already answered. And the generic path reports a legacy SDKException as optris::sdk::DeviceException, which blames the camera for a request it answered correctly, which has been measured to be as misleading as it sounds.
So this is thrown rather than SDKException, Imager::Connect() breaks out of the retry loop on it, and it reaches the v12 API as optris::sdk::ConfigException -- an error about the configuration, which is what it is.
Inherits from optris::SDKException.
Public functions
SDKException
SDKException() noexcept=default
Constructor.
SDKException
SDKException(std::string message) noexcept
Constructor.
Parameters
| Name | Description |
|---|---|
message |
error message. |