Class ExceptionHandler
- Namespace
- OpenCvSharp.Internal
- Assembly
- OpenCvSharp.dll
Surfaces the last native OpenCV exception as a managed exception.
public static class ExceptionHandler
- Inheritance
-
ExceptionHandler
- Inherited Members
Remarks
Details are captured natively, on the calling thread, directly from the thrown C++ exception (see the native cvTry / LastNativeException). No managed error callback is installed in the default path, so this is NativeAOT / trimming friendly.
Methods
ThrowPossibleException()
Throws an OpenCVException built from the per-thread native exception record. Call only when an export reported Occurred.
public static void ThrowPossibleException()