Interface GeckoResult.OnExceptionMapper

Enclosing class:
GeckoResult<T>

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).
      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.