pixelGetException method

PixelGetExceptionResult pixelGetException()

PixelGetException() returns the severity, reason, and description of any error that occurs when using other methods in this API.

Implementation

PixelGetExceptionResult pixelGetException() => using(
      (Arena arena) {
        final Pointer<Int32> severityPtr = arena();
        final Pointer<Char> descriptionPtr =
            _magickWandBindings.PixelGetException(
          _wandPtr,
          severityPtr,
        );
        final PixelGetExceptionResult result = PixelGetExceptionResult(
          ExceptionType.fromValue(severityPtr.value),
          descriptionPtr.toNullableString()!,
        );
        _magickRelinquishMemory(descriptionPtr.cast());
        return result;
      },
    );