OptrisOptrisDocumentation

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

optris::sdk::InvalidStateException

The call is well formed, but not now.

The camera is in a state where this cannot be done: starting a recording while one is already running, for instance. Distinct from ConfigException, which means the request itself is wrong, and from FeatureNotSupportedException, which means this camera can never do it. This one is a matter of timing: stop the recording and the same call succeeds.

It exists because the alternative was to report success and do something else. A second StartRecording() used to return normally and go on writing the first file, which told the caller it had a file that was never created.

Crosses the C ABI as OPTRIS_SDK_ERROR_INVALID_STATE and reaches C# as InvalidOperationException.

Inherits from optris::sdk::SdkException.