OptrisOptrisDocumentation

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

FrameCaptureException

public class FrameCaptureException : OptrisSdkException

A frame could not be captured.

Example

try
{
    using ThermalFrame frame = await camera.AcquireFrameAsync(token);
}
catch (FrameCaptureException error)
{
    Console.Error.WriteLine($"capture failed: {error.Message}");
}

FrameCaptureException: constructors

public FrameCaptureException(string message)

Create the exception.

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

Create the exception with its native status.

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