OptrisOptrisDocumentation

Documentation/OTC SDK/OTC SDK — legacy C++ API referencev12.0

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::FeatureUnavailableException

This camera has no such feature, and never will have.

The legacy ControlDevice surface is the union of everything every Optris camera has ever done, so every concrete device refuses some of it. What matters is how it refuses. ControlDeviceXi640Eth -- the newest, and the one with the most to refuse -- threw std::logic_error from thirty members, and std::logic_error is not an SDKException. Every catch (const [SDKException](/documentation/sdks/otc-sdk/v12.0/legacy/classes/optris.sdkexception) &) on the way out therefore missed it, including the one in IRImagerNative::connect() that releases the device claim: a stub reached during an open left this process holding the camera until it exited, and refusing its own later opens as "busy with another client".

A refusal is not an exotic failure. It belongs inside the hierarchy the rest of the stack already handles, so that adding a device with gaps in it cannot leak a resource that an existing handler would have released.

Reaches the v12 API as optris::sdk::FeatureNotSupportedException where the public call has one, and as optris::sdk::DeviceException through the generic path otherwise.

Inherits from optris::SDKException.

Public functions

SDKException

SDKException() noexcept=default

Constructor.

SDKException

SDKException(std::string message) noexcept

Constructor.

Parameters

Name Description
message error message.