Interface GeckoResult.OnExceptionListener<V>

Type Parameters:
V - Type of the vale for the result returned from onException(Throwable)
Enclosing class:
GeckoResult<T>

public static interface GeckoResult.OnExceptionListener<V>
An interface used to deliver exceptions to listeners of a GeckoResult
  • Method Details

    • onException

      @AnyThread @Nullable GeckoResult<V> 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:
      Result used to complete the next result in the chain. May be null.
      Throws:
      Throwable - Exception used to complete next result in the chain.