Class UnitTestingExceptionHandler

java.lang.Object
com.jk.core.exceptions.handler.UnitTestingExceptionHandler
All Implemented Interfaces:
JKExceptionHandler<Throwable>

public class UnitTestingExceptionHandler extends Object implements JKExceptionHandler<Throwable>
This class represents exception handler for unit testing purposes.
Version:
1.0
Author:
Dr. Jalal H. Kiswani
  • Constructor Details

    • UnitTestingExceptionHandler

      public UnitTestingExceptionHandler()
  • Method Details

    • handle

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