drawGetException method

DrawGetExceptionResult drawGetException()

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

Implementation

DrawGetExceptionResult drawGetException() => using(
      (Arena arena) {
        final Pointer<Int32> severityPtr = arena();
        final Pointer<Char> descriptionPtr =
            _magickWandBindings.DrawGetException(
          _wandPtr,
          severityPtr,
        );
        final String description = descriptionPtr.toNullableString()!;
        _magickRelinquishMemory(descriptionPtr.cast());
        return DrawGetExceptionResult(
          ExceptionType.fromValue(severityPtr.value),
          description,
        );
      },
    );