pixelGetIteratorException method

PixelGetIteratorExceptionResult pixelGetIteratorException()

Returns the severity, reason, and description of any error that occurs when using other methods in this API.

Implementation

PixelGetIteratorExceptionResult pixelGetIteratorException() => using(
      (Arena arena) {
        Pointer<Int32> severityPtr = arena();
        Pointer<Char> descriptionPtr =
            _magickWandBindings.PixelGetIteratorException(
                _iteratorPtr, severityPtr);
        final PixelGetIteratorExceptionResult result =
            PixelGetIteratorExceptionResult(
          ExceptionType.fromValue(severityPtr.value),
          descriptionPtr.toNullableString()!,
        );
        _magickRelinquishMemory(descriptionPtr.cast());
        return result;
      },
    );