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::FormatTableMismatchException
The loaded Formats.def describes no stream this camera offers.
The same shape as OperationModeUnavailableException above and for the same reason: the answer is final, so retrying it is time spent re-asking a question that has been answered. Opening a camera over USB retries ten times at 500 ms, and each attempt waits for a fresh enumeration pass, takes the device claim, opens the camera through the platform layer to list its formats and only then fails the match -- about 1.2 s. Two runs measured 12.9 s and 11.2 s for a refusal that was settled on the first attempt, with the process-wide calibration scope held across all ten, so every other camera's open in the process queued behind it.
EVERY ROUTE TO THAT REFUSAL IS FINAL, which is worth stating because I first believed otherwise and narrowed this type on a condition that turned out to be dead code.
The theory was that supportedFormatMap.empty() covers two cases and only one is permanent: a device that reported formats none of which matched (final), versus a device that reported nothing because it had not enumerated yet (not final, and the reason the ten USB attempts exist). The second case does not reach the refusal. An empty input-format list is a deliberate relaxation for a bulk-transfer camera with no V4L2 node: with no second opinion to check the table against, every entry compatible with the hardware and firmware revision is accepted and the open SUCCEEDS.
The only way to arrive at the refusal with an empty list is for the table to describe nothing compatible with this revision -- as permanent as a mismatch, since the table is on disk and the revision comes off the control channel. So this type is thrown unconditionally there, and a test asserts the relaxation still opens rather than refusing, so the dead narrowing is not reintroduced.
Reaches the v12 API as optris::sdk::ConfigException, like OperationModeUnavailableException: a Formats.def that does not describe the attached camera is a problem with the installation, not a fault in the camera, and reporting it as DeviceException blamed the camera for answering correctly. The message already names the winning table, its Release and its entry count, so the thing to fix travels with the refusal.
Inherits from optris::SDKException.
Public functions
SDKException
SDKException() noexcept=default
Constructor.
SDKException
SDKException(std::string message) noexcept
Constructor.
Parameters
| Name | Description |
|---|---|
message |
error message. |