Interface Handler<T>

  • Type Parameters:
    T - the type of the problem.

    public interface Handler<T>
    Receives notification of problems.
    Author:
    Mike Samuel ([email protected])
    • Field Detail

      • DO_NOTHING

        static final Handler<Object> DO_NOTHING
        A handler that does nothing given any input.
      • PROPAGATE

        static final Handler<Throwable> PROPAGATE
        A handler that re-raises an error, wrapping it in a runtime exception if necessary.
    • Method Detail

      • handle

        void handle​(T x)
        Called to handle x.
        Parameters:
        x - the problem.