Platform Explorer / Nuxeo Platform LTS 2015 7.10

Extension point errorhandlers

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

Contribution Descriptor

Existing Contributions

  • nuxeo-platform-web-common-7.10-HF07.jar /OSGI-INF/exception-handling-contrib.xml
    <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=".*DocumentNotFoundException" message="Error.Document.Not.Found"/>
            <handler code="403" error=".*SecurityException" message="Error.Insuffisant.Rights" page="/nuxeo_error_security.jsp"/>
            <handler code="500" error=".*" message="Error.Unknown"/>
          </handlers>
        </errorHandlers>
      </extension>