Package io.goobi.viewer.exceptions
Class MyExceptionHandler
java.lang.Object
jakarta.faces.context.ExceptionHandler
jakarta.faces.context.ExceptionHandlerWrapper
io.goobi.viewer.exceptions.MyExceptionHandler
- All Implemented Interfaces:
FacesListener,SystemEventListener,FacesWrapper<ExceptionHandler>,EventListener
Custom JSF ExceptionHandler that intercepts unhandled exceptions and redirects to an appropriate error page.
-
Constructor Summary
ConstructorsConstructorDescriptionMyExceptionHandler(ExceptionHandler wrapped) Creates a new MyExceptionHandler instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidhandle()voidputNavigationState(Map<String, Object> requestMap, HttpSession session) Methods inherited from class jakarta.faces.context.ExceptionHandlerWrapper
getHandledExceptionQueuedEvent, getHandledExceptionQueuedEvents, getRootCause, getUnhandledExceptionQueuedEvents, getWrapped, isListenerForSource, processEvent
-
Constructor Details
-
MyExceptionHandler
Creates a new MyExceptionHandler instance.- Parameters:
wrapped- aExceptionHandlerobject.
-
-
Method Details
-
handle
- Overrides:
handlein classExceptionHandlerWrapper- Throws:
FacesException
-
createRecodLimitExceededMessage
- Parameters:
t- throwable carrying the RecordLimitExceededException message- Returns:
- String
-
getSessionDetails
- Parameters:
fc- current JSF faces context for accessing the session- Returns:
- String
-