public static interface GeckoResult.OnExceptionMapper
GeckoResult
exceptions.Modifier and Type | Method and Description |
---|---|
Throwable |
onException(Throwable exception)
Called when a
GeckoResult is completed with an exception. |
@AnyThread @Nullable Throwable 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.