OptrisOptrisDocumentation

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

optris::sdk::ConnectTimeoutException

The open ran out of the time the caller allowed it.

A subclass of DeviceException, so every existing catch ([DeviceException](/documentation/sdks/otc-sdk/v12.0/api/classes/optris.sdk.deviceexception) &) keeps catching it and nothing that already handled a failed open changes behaviour. Catch this one first to tell the two apart.

The distinction it exists for: a refusal comes back at once and means something is at that address that is not a camera, or is a camera that will not have you. An expiry means nothing answered at all. An operator fixes those two differently -- one is a wrong address, the other is a cable, a firewall or a subnet -- and an application that cannot tell them apart can only say "could not connect".

Only the network transport can raise it. A camera on USB has no connection to time out; it is present or it is not.

Crosses the C ABI as OPTRIS_SDK_ERROR_TIMEOUT and reaches C# as ConnectTimeoutException.

Inherits from optris::sdk::DeviceException.