Class JKDefaultExceptionHandler<T extends Throwable>

java.lang.Object
com.jk.core.exceptions.handler.JKDefaultExceptionHandler<T>
Type Parameters:
T - the generic type that represents the exceptions this class handles.
All Implemented Interfaces:
JKExceptionHandler<T>

public class JKDefaultExceptionHandler<T extends Throwable> extends Object implements JKExceptionHandler<T>
This class represents the default exception handler class for the JK-Framework.

It provides methods to handle different types of exceptions in a consistent manner.

Version:
1.0
Author:
Dr. Jalal H. Kiswani
  • Constructor Details

    • JKDefaultExceptionHandler

      public JKDefaultExceptionHandler()
  • Method Details

    • handle

      public void handle(T throwable, boolean throwRuntimeException)
      This method handles the given throwable in a custom manner.
      Specified by:
      handle in interface JKExceptionHandler<T extends Throwable>
      Parameters:
      throwable - Represents the throwable to be handled.
      throwRuntimeException - If true, a RuntimeException might be thrown after handling.