Package com.jk.core.exceptions.handler
Class UnitTestingExceptionHandler
java.lang.Object
com.jk.core.exceptions.handler.UnitTestingExceptionHandler
- All Implemented Interfaces:
JKExceptionHandler<Throwable>
This class represents exception handler for unit testing purposes.
- Version:
- 1.0
- Author:
- Dr. Jalal H. Kiswani
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
UnitTestingExceptionHandler
public UnitTestingExceptionHandler()
-
-
Method Details
-
handle
This method handles the given throwable in a custom manner.- Specified by:
handlein interfaceJKExceptionHandler<Throwable>- Parameters:
throwable- Represents the throwable to be handled.throwRuntimeException- If true, a RuntimeException might be thrown after handling.
-