Interface EasyThread.ErrorListener<T>

Enclosing class:
EasyThread

public static interface EasyThread.ErrorListener<T>
Callback listener for errors on easy thread
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onError(EasyThread t, T callback, Throwable error)
    Invoked when an exception is thrown on an easy thread.
  • Method Details

    • onError

      void onError(EasyThread t, T callback, Throwable error)

      Invoked when an exception is thrown on an easy thread. Notice this callback occurs within the thread and not on the EDT. This method blocks the current easy thread until it completes.

      Parameters
      • t: the thread

      • callback: the callback that triggered the exception

      • error: the exception that occurred