HttpException

class HttpException @JvmOverloads constructor(val httpCode: Int, val message: String, val cause: Throwable? = null) : Exception

Exception thrown when an HTTP response is not successful, i.e., the status code is not in the range 200..299.

Constructors

Link copied to clipboard
constructor(httpCode: Int, message: String, cause: Throwable? = null)

Properties

Link copied to clipboard
open override val cause: Throwable? = null

The underlying cause of this exception, if any.

Link copied to clipboard

The HTTP status code returned by the server.

Link copied to clipboard
open override val message: String

The HTTP status message, or a custom error message.

Functions

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