exceptionOrNull property

NetworkException? get exceptionOrNull

Implementation

NetworkException? get exceptionOrNull =>
    this is Failure<T> ? (this as Failure<T>).exception : null;