V
- Type of the vale for the result returned from onException(Throwable)
public static interface GeckoResult.OnExceptionListener<V>
GeckoResult
Modifier and Type | Method and Description |
---|---|
GeckoResult<V> |
onException(Throwable exception)
Called when a
GeckoResult is completed with an exception. |
@AnyThread @Nullable GeckoResult<V> onException(@NonNull Throwable exception) throws Throwable
GeckoResult
is completed with an exception.
Will be called on the same thread where the GeckoResult was created
or on the Handler
provided via GeckoResult.withHandler(Handler)
.exception
- Exception that completed the result.Throwable
- Exception used to complete next result in the chain.