ApiException

class ApiException(val status: Int, val content: String) : Exception

Class representing an API exception.

This class extends the Exception class and is used to represent exceptions that occur when interacting with an API. It contains a status code and a content message.

Parameters

status

The status code of the API response.

content

The content message of the API response.

Constructors

Link copied to clipboard
constructor(status: Int, content: String)

Creates a new ApiException with the given status and content.

Properties

Link copied to clipboard
Link copied to clipboard
val status: Int

Functions

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

Overrides the toString function from the Exception class.