HttpException

class HttpException(val method: HttpMethod, val url: String, val code: Int, val content: String) : Exception

Constructors

Link copied to clipboard
constructor(method: HttpMethod, url: String, code: Int, content: String)

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
val code: Int
Link copied to clipboard
Link copied to clipboard

The HttpException behind this. OkHttp hands one thrown by an interceptor of an async call on wrapped in an IOException.

Link copied to clipboard
Link copied to clipboard
open val message: String?
Link copied to clipboard
Link copied to clipboard
val url: String