TransformationResult

sealed interface TransformationResult<E, T>(source)

This class works similar to the Result class in the Kotlin standard library. The difference is that the TransformationFailure can store information other than Throwables to be able to describe the reasons for failure in more detail.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val isFailure: Boolean
Link copied to clipboard
abstract val isSuccess: Boolean

Functions

Link copied to clipboard
abstract fun getFailureReasonOrNull(): T?
Link copied to clipboard
abstract fun getValueOrNull(): E?
Link copied to clipboard
abstract override fun toString(): String