Interface ExceptionHandler

All Known Implementing Classes:
LogExceptionHandler

public interface ExceptionHandler
Interface for listening to generic exceptions
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final ExceptionHandler
    A standard imnplementation that wraps checked exceptions in RuntimeExceptions
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Implementations of this method must react to an Exception
  • Field Details

    • TO_RUNTIME_EXCEPTION

      static final ExceptionHandler TO_RUNTIME_EXCEPTION
      A standard imnplementation that wraps checked exceptions in RuntimeExceptions
  • Method Details

    • onException

      void onException(Exception e)
      Implementations of this method must react to an Exception
      Parameters:
      e - the expcetion to react to