Success

class Success<out V : Any>(value: V) : SippoService<V>

Successful result with value value.

Parameters

V

Type of the value.

Constructors

Link copied to clipboard
fun <out V : Any> Success(value: V)

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(): V

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

Properties

Link copied to clipboard
val value: V