InstantException

Thrown when there's an error while communicating with Instant Server (Nutrient Document Engine). Suppressing OverrideThrowableToString as we're fine with just using toString here.

Inheritors

Constructors

Link copied to clipboard
constructor(@Nullable message: String, @Nullable cause: Throwable)
Constructs a new instant exception with the specified detail message and cause.
constructor(@NonNull errorCode: InstantErrorCode, @Nullable cause: Throwable, @Nullable message: String, @NonNull args: Array<Any>)
Constructs a new instant exception with the specified detail message and cause.
constructor(@NonNull errorCode: InstantErrorCode, @Nullable message: String, @NonNull args: Array<Any>)
Constructs a new instant exception with the specified detail message and cause.
constructor(@NonNull errorCode: InstantErrorCode, @Nullable message: String, @Nullable underlyingError: Integer)
Constructs a new instant exception with the specified detail message and cause.

Properties

Link copied to clipboard
The error code indicating the category of this Instant exception.
Link copied to clipboard
The original error code from the underlying subsystem (e.g., HTTP status code or SQL error code), if available.

Functions

Link copied to clipboard
open fun toString(): String
Returns a string representation of this exception including the class name, error code, and message.