Package org.mozilla.geckoview
Interface GeckoResult.OnExceptionMapper
- Enclosing class:
- GeckoResult<T>
public static interface GeckoResult.OnExceptionMapper
An interface used to map
GeckoResult
exceptions.-
Method Summary
Modifier and TypeMethodDescriptiononException
(Throwable exception) Called when aGeckoResult
is completed with an exception.
-
Method Details
-
onException
Called when aGeckoResult
is completed with an exception. Will be called on the same thread where the GeckoResult was created or on theHandler
provided viaGeckoResult.withHandler(Handler)
.- Parameters:
exception
- Exception that completed the result.- Returns:
- Exception used to complete the next result in the chain. May be null.
- Throws:
Throwable
- Exception used to complete next result in the chain.
-