Failure

class Failure<out E : Any>(error: Exception) : SippoService<E>

Failed result with error error.

Parameters

E

Type of the error. It has to extend Exception.

Constructors

Link copied to clipboard
fun Failure(error: Exception)

Functions

Link copied to clipboard
open override fun error(): Exception

Returns the error associated. In case of Success, error will be null.

Link copied to clipboard
open override fun value(): E?

Returns the value associated. In case of Failure, value will be null.

Properties

Link copied to clipboard
val error: Exception