Platform Explorer / CMF 1.8

Extension point errorhandlers

Documentation

Define a set key/exception to be used to output error message

Contribution Descriptors

  • Class: org.nuxeo.ecm.platform.web.common.exceptionhandling.descriptor.ErrorHandlersDescriptor

Existing Contributions

Contributions are presented in the same order as the registration order on this extension point. This order is displayed before the contribution name, in brackets.

  • nuxeo-platform-web-common-5.4.2-HF05.jar
    <extension point="errorhandlers" target="org.nuxeo.ecm.platform.web.common.exceptionhandling.service.ExceptionHandlingService">
        <errorHandlers bundle="messages" defaultpage="/nuxeo_error.jsp" loggerName="nuxeo-error-log">
          <handlers>
            <handler code="404" error=".*NoSuchDocumentException" message="Error.Document.Not.Found"/>
            <handler error=".*NoSuchPropertyException" message="Error.Document.NoSuchProperty"/>
            <handler error=".*SecurityException" message="Error.Insuffisant.Rights"/>
            <handler error=".*" message="Error.Unknown"/>
          </handlers>
        </errorHandlers>
      </extension>