Error

class Error<T>(val exception: Exception) : OAuth2ClientResult<T>

An error result.

Constructors

Link copied to clipboard
constructor(exception: Exception)

Types

Link copied to clipboard

The response type used to represent a completed HTTP response, but a non successful status code.

Link copied to clipboard

The response failed due to no OidcEndpoints.

Link copied to clipboard

The request was rate-limited by the Authorization Server (HTTP 429).

Properties

Link copied to clipboard

The exception associated with the error.

Functions

Link copied to clipboard
fun getOrThrow(): T

Returns the encapsulated value if this instance represents Success or throws the encapsulated Exception if it is Error.