OAuth2ClientResult

sealed class OAuth2ClientResult<T>

Describes the result from the OAuth2Client.

Inheritors

Types

Link copied to clipboard
class Error<T>(val exception: Exception) : OAuth2ClientResult<T>

An error result.

Link copied to clipboard
class Success<T>(val result: T) : OAuth2ClientResult<T>

Success with the expected result.

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.