OptrisOptrisDocumentation

Documentation/OTC SDK/Optris.Sdk — C# API referencev12.0

ThermalDeviceException

public class ThermalDeviceException : OptrisSdkException

A camera could not be opened, is no longer reachable, or rejected a command.

Example

try
{
    using var camera = ThermalCamera.Open();
}
catch (ThermalDeviceException)
{
    Console.WriteLine("no camera attached");
}

ThermalDeviceException: constructors

public ThermalDeviceException(string message)

Create the exception.

  • message: What went wrong.
public ThermalDeviceException(string message, int status)

Create the exception with its native status.

  • message: What went wrong.
  • status: The native status code.