Success

class Success<T>(val result: T) : OAuth2ClientResult<T>

Success with the expected result.

Constructors

Link copied to clipboard
constructor(result: T)

Properties

Link copied to clipboard
val result: T

The result of the success 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.