ApiException

open class ApiException(val statusCode: Int, val error: String, message: String?) : Exception

Base exception for all API exceptions. Constructs a new ApiException with specified status code, error and description.

Parameters

statusCode

The status code of the exception. Maps to HTTP status codes.

error

The error/name of the exception.

message

The reason and description for the exception.

Inheritors

Constructors

Link copied to clipboard
constructor(statusCode: Int, error: String, message: String?)

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
Link copied to clipboard
open val message: String?
Link copied to clipboard

Functions

Link copied to clipboard
open override fun toString(): String