Package com.jk.web.faces.exceptions
Class JKFacesExceptionHandler
java.lang.Object
jakarta.faces.context.ExceptionHandler
jakarta.faces.context.ExceptionHandlerWrapper
org.primefaces.application.exceptionhandler.PrimeExceptionHandler
com.jk.web.faces.exceptions.JKFacesExceptionHandler
- All Implemented Interfaces:
jakarta.faces.event.FacesListener,jakarta.faces.event.SystemEventListener,jakarta.faces.FacesWrapper<jakarta.faces.context.ExceptionHandler>,EventListener
public class JKFacesExceptionHandler
extends org.primefaces.application.exceptionhandler.PrimeExceptionHandler
This class is a handler that intercepts unhandled exceptions in the
application, logs them, and provides a custom error message to the user.
- Version:
- 1.0
- Author:
- Dr. Jalal H. Kiswani
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJKFacesExceptionHandler(jakarta.faces.context.ExceptionHandler wrapped) This method constructs a newJKFacesExceptionHandler. -
Method Summary
Methods inherited from class org.primefaces.application.exceptionhandler.PrimeExceptionHandler
buildView, constructRedirectUrl, createExceptionInfo, findHandlerComponent, getRootCause, getWrapped, handleAjaxException, handleRedirect, isLogException, logExceptionMethods inherited from class jakarta.faces.context.ExceptionHandlerWrapper
getHandledExceptionQueuedEvent, getHandledExceptionQueuedEvents, getUnhandledExceptionQueuedEvents, isListenerForSource, processEvent
-
Field Details
-
logger
Represents this class logger.
-
-
Constructor Details
-
JKFacesExceptionHandler
public JKFacesExceptionHandler(jakarta.faces.context.ExceptionHandler wrapped) This method constructs a newJKFacesExceptionHandler.- Parameters:
wrapped- Specifies the wrapped exception handler to delegate handling to.
-
-
Method Details
-
handle
public void handle() throws jakarta.faces.FacesException- Overrides:
handlein classorg.primefaces.application.exceptionhandler.PrimeExceptionHandler- Throws:
jakarta.faces.FacesException
-
evaluateErrorPage
- Overrides:
evaluateErrorPagein classorg.primefaces.application.exceptionhandler.PrimeExceptionHandler
-