Interface JKExceptionHandler<T extends Throwable>

Type Parameters:
T - Specifies the type of exception to be handled, which must extend Throwable.
All Known Implementing Classes:
JKDefaultExceptionHandler, JKWebExceptionHandler, UnitTestingExceptionHandler

public interface JKExceptionHandler<T extends Throwable>
This interface is used for handling exceptions inside the JK-Framework.
Version:
1.0
Author:
Dr. Jalal H. Kiswani
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handle(T throwable, boolean throwRuntimeException)
    This method handles the given throwable in a custom manner.
  • Method Details

    • handle

      void handle(T throwable, boolean throwRuntimeException)
      This method handles the given throwable in a custom manner.
      Parameters:
      throwable - Represents the throwable to be handled.
      throwRuntimeException - If true, a RuntimeException might be thrown after handling.