Interface ExceptionHandler

All Known Implementing Classes:
ExceptionHandlers.CompositeExceptionHandler, ExceptionHandlers.IgnoreExceptionHandler, ExceptionHandlers.LoggingExceptionHandler

public interface ExceptionHandler
Takes action when an Exception is thrown. Examples include placing a delay in execution when performing back-offs and logging errors when exceptions are encountered.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Act on an exception, this method should be called by clients when an exception occurs in wrapped code.
  • Method Details

    • handle

      void handle(RuntimeException exception)
      Act on an exception, this method should be called by clients when an exception occurs in wrapped code.
      Parameters:
      exception - the exception to handle