Package com.jk.core.exceptions.handler
Class JKExceptionUtil
java.lang.Object
com.jk.core.exceptions.handler.JKExceptionUtil
This class is an utility class for working with exceptions.
This class provides method to handle, log, and manage the exceptions inside the JK-Framework.
- Version:
- 1.0
- Author:
- Dr. Jalal H. Kiswani
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidThis method handles the given throwable in a custom manner.static voidThis method handles the given throwable in a custom manner.static voidThis method throws an exception depending on the specified throwable.
-
Constructor Details
-
JKExceptionUtil
public JKExceptionUtil()
-
-
Method Details
-
handle
This method handles the given throwable in a custom manner.a
RuntimeExceptionmight be thrown after handling.- Parameters:
t- Specifies the exception that needs to be handled.
-
handle
This method handles the given throwable in a custom manner.- Parameters:
t- Specifies the exception.throwRuntimeException- If true, a RuntimeException might be thrown after handling.
-
throww
This method throws an exception depending on the specified throwable.- Parameters:
t- Specifies the throwable responsible for the exception.
-