DirectAuthResult

A Java-friendly result type that wraps a successful value or a failure exception.

Unlike Kotlin's kotlin.Result (which is a value class with JVM limitations), this class is a standard class that Java callers can use directly.

Type Parameters

T

The type of the successful value.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard

Returns the failure exception, or null if this result is a success.

Link copied to clipboard
fun getOrNull(): T?

Returns the successful value, or null if this result is a failure.

Link copied to clipboard
fun getOrThrow(): T

Returns the successful value, or throws the failure exception.

Link copied to clipboard

Returns true if the result is a failure.

Link copied to clipboard

Returns true if the result is a success.