class Failure<out E : Any> : SippoService<E>
Failed result with error error.
E
- Type of the error. It has to extend Exception.
Failure(error: Exception)
Failed result with error error. |
val error: Exception |
fun error(): Exception
Returns the error associated. In case of Success, error will be null. |
|
fun value(): E?
Returns the value associated. In case of Failure, value will be null. |