errorOrNull

inline fun <T> Event<T>.errorOrNull(): Throwable?(source)

Returns the encapsulated error if this Event is an Event.Error, otherwise returns null.