cancel
Showing results for 
Search instead for 
Did you mean: 

Adding ERROR in SAP:Error

former_member189354
Contributor
0 Kudos

Hi,

Is there any way where I can extend standard SAP:Error.

Current Display:

<SAP:Error SOAP:mustUnderstand="1" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">

<SAP:Category>XIServer</SAP:Category>

<SAP:Code area="MAPPING">GENERIC</SAP:Code>

<SAP:P1>com/ups/xipiutil/HttpClientConnection</SAP:P1>

<SAP:P2>HTTP STATUS CODE <> 200. HTTPCode :341</SAP:P2>

<SAP:P3 />

<SAP:P4 />

<SAP:AdditionalText />

<SAP:Stack>com/ups/xipiutil/HttpClientConnection HTTP STATUS CODE <> 200. HTTPCode :341</SAP:Stack>

<SAP:Retry>M</SAP:Retry>

</SAP:Error>

I want utilize P3, P4 and AdditionalText to write additional information of my error. Is there any way where i can achieve this using  java api's? Appreciate for your response.

Thank you,

RAO

Accepted Solutions (0)

Answers (2)

Answers (2)

iaki_vila
Active Contributor
0 Kudos

Hi Malikarjuna,

Why do you want to enhance the exception?, if you want to alert via mail these cases you can think about to set more information in the mail instead of changing this.

Regards.

former_member186851
Active Contributor
0 Kudos

What  additional u wish to add here?