Show TOC Start of Content Area

Object documentation Fault Messages  Locate the document in its SAP Library structure

Definition

A fault message is a message that describes an application-specific error situation.

Use

The proxy generation functions generate exception classes for fault messages in the Enterprise Services Repository. If an application triggers an exception using an exception class such as this, the proxy runtime automatically converts it to a fault message. Using the fault message, the application records an application error (for example, Requested Customer Profile Unknown).

Structure

The exception class generated from the fault message can give you information about the error cause using the following structure:

This graphic is explained in the accompanying text

The defined structure STANDARD contains fields essential for forwarding the error. The structure ADDITION can be used freely by the application.

Example

The following UML diagram shows the class hierarchy of the generated classes for the fault message Fault. The data type Application in the Enterprise Services Repository acts as the application-specific part of the fault message:

This graphic is explained in the accompanying text

 

To send the fault message, complete the objects for the classes of the fault message on the inbound side. Transfer the fault message to an instance of the exception class (in the example, Fault_Message_Exception) and trigger the exception throw <Exception Class>.

 

 

 

 

End of Content Area