sippo-sdk / com.quobis.sippo.sipposdk.client.model / SippoService / Failure

Failure

class Failure<out E : Any> : SippoService<E>

Failed result with error error.

Parameters

E - Type of the error. It has to extend Exception.

Constructors

<init>

Failure(error: Exception)

Failed result with error error.

Properties

error

val error: Exception

Functions

error

fun error(): Exception

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

value

fun value(): E?

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