InstantException

constructor(@Nullable message: String, @Nullable cause: Throwable)

Constructs a new instant exception with the specified detail message and cause.

Parameters

message

The detail message.

cause

The cause of this exception or null if cause is unknown.


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.

Parameters

errorCode

The error code of the exception cause.

cause

The cause of this exception or null if cause is unknown.

message

The detail message.

args

Arguments for the format specifiers in the message.


constructor(@NonNull errorCode: InstantErrorCode, @Nullable message: String, @NonNull args: Array<Any>)

Constructs a new instant exception with the specified detail message and cause.

Parameters

errorCode

The error code of the exception cause.

message

The detail message.

args

Arguments for the format specifiers in the message.


constructor(@NonNull errorCode: InstantErrorCode, @Nullable message: String, @Nullable underlyingError: Integer)

Constructs a new instant exception with the specified detail message and cause.

Parameters

errorCode

The error code of the exception cause.

message

The detail message.

underlyingError

Implementation specific error code that caused this exception (HTTP error code for network errors, SQL error code for database errors etc.)