Platform Explorer / Nuxeo Platform 5.6

Contribution org.nuxeo.ecm.platform.web.common.exceptionhandling.service.ExceptionHandlingContrib--errorhandlers

This contribution is part of XML component org.nuxeo.ecm.platform.web.common.exceptionhandling.service.ExceptionHandlingContrib inside nuxeo-platform-web-common-5.6.jar

Extension point

Extension point errorhandlers of component ExceptionHandlingService.

Contributed items

  • <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>

XML source

<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>