Interface GeckoResult.OnExceptionListener<V>

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

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).
      exception - Exception that completed the result.
      Result used to complete the next result in the chain. May be null.
      Throwable - Exception used to complete next result in the chain.