Show TOC

Procedure documentationDisplaying a Customized Error Message Locate this document in the navigation structure

 

In a portal application, you can create an error component with a customized message that is displayed instead of the standard portal runtime error message.

Procedure

  1. Create a portal application that displays your customized message.

    More information: Portal Applications

    Note Note

    The portal runtime error message displays an exception ID that is required for support — it identifies the error in the log file. When creating a customized message, you can make the exception ID available in the customized error page.

    To do so, enter the following code in the doContent() method of your portal application:

    String CUSTOMIZED_EXCEPTION_ID = "com.sap.portal.prt.system.CUSTOMIZED_EXCEPTION_ID";

    (String) request.getNode().getValue(CUSTOMIZED_EXCEPTION_ID);

    End of the note.
  2. Deploy the application to the portal. More information: Deployment of Applications

  3. In the portal, navigate to   System Administration   System Configuration   Service Configuration  .

  4. In the Portal Catalog, navigate to   Portal Runtime   Central Configuration  .

  5. Change the value of the portal.runtime.exception.errorcomponent parameter to <portal application name>.<application component name>.

  6. Restart the server for the change to take effect.

Result

The customized error message appears when a runtime error occurs in the portal.

Note Note

You can check that the customized message is displayed instead of the standard runtime error page, by creating an abstract portal component that throws a runtime exception.

End of the note.