HttpException

Exception that handles HTTP codes considered not successful by OkHttp. Use it to have a standardized error message in the app across the extensions.

Since

extensions-lib 17

Parameters

code

Int the HTTP status code

See also

Response.isSuccessful

Constructors

Link copied to clipboard
constructor(code: Int)

Properties

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