Package com.jk.core.exceptions.handler
Class JKExceptionHandlerInfo
java.lang.Object
com.jk.core.exceptions.handler.JKExceptionHandlerInfo
This class represents information about an exception handler.
This class holds details about an exception handler, including its throwable, its class and configuration.
- Version:
- 1.0
- Author:
- Dr. Jalal H. Kiswani
-
Constructor Summary
ConstructorsConstructorDescriptionThis method constructs a newJKExceptionHandlerInfo
instance. -
Method Summary
Modifier and TypeMethodDescriptionThis method sets the exception this exception handler is responsible for handling.This method gets the exception class which this handler is responsible for handling.This method gets the exception handler.setException
(Throwable exception) This method gets aJKExceptionHandlerInfo
instance and specifies the exception.setExceptionClass
(Class<? extends Throwable> exceptionClass) This method gets aJKExceptionHandlerInfo
instance and specifies the exception class.setHandler
(JKExceptionHandler<?> handler) This method gets aJKExceptionHandlerInfo
instance and specifies the exception handler associated with it.
-
Constructor Details
-
JKExceptionHandlerInfo
public JKExceptionHandlerInfo()This method constructs a newJKExceptionHandlerInfo
instance.
-
-
Method Details
-
getException
This method sets the exception this exception handler is responsible for handling.- Returns:
- the throwable this exception handler is responsible for handling.
-
getExceptionClass
This method gets the exception class which this handler is responsible for handling.- Returns:
- the throwable class.
-
getHandler
This method gets the exception handler.- Returns:
- the exception handler.
-
setException
This method gets aJKExceptionHandlerInfo
instance and specifies the exception.- Parameters:
exception
- Specifies the exception this exception handler is responsible for.- Returns:
- the
JKExceptionHandlerInfo
instance with its exception specified.
-
setExceptionClass
This method gets aJKExceptionHandlerInfo
instance and specifies the exception class.- Parameters:
exceptionClass
- Specifies the exception class.- Returns:
- the
JKExceptionHandlerInfo
instance with its exception class specified.
-
setHandler
This method gets aJKExceptionHandlerInfo
instance and specifies the exception handler associated with it.- Parameters:
handler
- Specifies the exception handler.- Returns:
- the
JKExceptionHandlerInfo
instance with its exception handler specified.
-