OptrisOptrisDocumentation

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

SdkIOException

public sealed class SdkIOException : OptrisSdkException

A file could not be read or written.

Example

try
{
    using var playback = ThermalCamera.OpenRecording("run.mkv");
}
catch (SdkIOException error)
{
    Console.Error.WriteLine($"cannot open the recording: {error.Message}");
}

SdkIOException: constructors

public SdkIOException(string message)

Create the exception.

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

Create the exception with its native status.

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