Class ExceptionHandlingComponent
java.lang.Object
org.nuxeo.runtime.model.DefaultComponent
org.nuxeo.ecm.platform.web.common.exceptionhandling.service.ExceptionHandlingComponent
- All Implemented Interfaces:
ExceptionHandlingService,Adaptable,Component,Extensible,TimestampedService
public class ExceptionHandlingComponent
extends DefaultComponent
implements ExceptionHandlingService
- Author:
- arussel, Benjamin JALON
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected NuxeoExceptionHandlerprotected final NuxeoExceptionHandlerParametersFields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidforwardToErrorPage(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Throwable t) protected <T> TnewInstance(Class<T> klass) voidregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor) Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
activate, addRuntimeMessage, addRuntimeMessage, deactivate, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerExtension, setLastModified, setModifiedNow, setName, start, stop, unregister, unregisterContribution, unregisterExtensionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.nuxeo.runtime.model.Component
getApplicationStartedOrder
-
Field Details
-
exceptionHandler
-
exceptionHandlerParameters
-
-
Constructor Details
-
ExceptionHandlingComponent
public ExceptionHandlingComponent()
-
-
Method Details
-
registerContribution
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) - Overrides:
registerContributionin classDefaultComponent
-
newInstance
-
forwardToErrorPage
public void forwardToErrorPage(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Throwable t) throws IOException, jakarta.servlet.ServletException - Specified by:
forwardToErrorPagein interfaceExceptionHandlingService- Throws:
IOExceptionjakarta.servlet.ServletException
-
getExceptionHandler
- Specified by:
getExceptionHandlerin interfaceExceptionHandlingService
-