OptrisOptrisDocumentation

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

CalibrationException

public sealed class CalibrationException : OptrisSdkException

Calibration data is missing or unusable, so the camera cannot measure temperatures.

This is raised when an open fails and calibration was found missing along the way; it is the more actionable half of such a report. A camera whose calibration is merely missing opens and streams instead, so this is not the way to detect that: read ThermalCamera.CalibrationStatus and ThermalCamera.CalibrationDiagnosis.

Example

try
{
    using var camera = ThermalCamera.Open(device, options);
}
catch (CalibrationException error)
{
    Console.Error.WriteLine($"calibration problem: {error.Message}");
}

CalibrationException: constructors

public CalibrationException(string message)

Create the exception.

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

Create the exception with its native status.

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