Displaying a Customized Error Message 
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.
Create a portal application that displays your customized message.
More information: Portal Applications
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);
Deploy the application to the portal. More information: Deployment of Applications
In the portal, navigate to .
In the Portal Catalog, navigate to .
Change the value of the portal.runtime.exception.errorcomponent parameter to <portal application name>.<application component name>.
Restart the server for the change to take effect.
The customized error message appears when a runtime error occurs in the portal.
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.