Interface GeckoResult.OnExceptionMapper

Enclosing class:

public static interface GeckoResult.OnExceptionMapper
An interface used to map GeckoResult exceptions.
  • Method Details

    • onException

      @AnyThread @Nullable Throwable onException(@NonNull Throwable exception) throws Throwable
      Called when a 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.
      Exception used to complete the next result in the chain. May be null.
      Throwable - Exception used to complete next result in the chain.