HttpException

class HttpException : IOException

Thrown when an http request fails.

Exposes the specific status code or UNKNOWN via getStatusCode so users may attempt to retry or otherwise uniformly handle certain types of errors regardless of the underlying http library.

Constructors

Link copied to clipboard
open fun HttpException(statusCode: Int)
Link copied to clipboard
open fun HttpException(message: String)
Link copied to clipboard
open fun HttpException(message: String, statusCode: Int)
Link copied to clipboard
open fun HttpException(    message: String,     statusCode: Int,     cause: Throwable)

Functions

Link copied to clipboard
fun addSuppressed(exception: Throwable)
Link copied to clipboard
open fun fillInStackTrace(): Throwable
Link copied to clipboard
open fun getLocalizedMessage(): String
Link copied to clipboard
open fun getMessage(): String
Link copied to clipboard
fun getSuppressed(): Array<Throwable>
Link copied to clipboard
open fun initCause(cause: Throwable): Throwable
Link copied to clipboard
open fun printStackTrace()
Link copied to clipboard
open fun toString(): String

Properties

Link copied to clipboard
open val cause: Throwable
Link copied to clipboard
open var stackTrace: Array<StackTraceElement>
Link copied to clipboard
val statusCode: Int
Link copied to clipboard
val UNKNOWN: Int