cancel
Showing results for 
Search instead for 
Did you mean: 

Catch the custom message returned from the java application in iflow exception sub process

former_member655824
Participant
0 Kudos

Hi experts,

In our iflow, there is a place which calls the java application.

If the java application occurs error, it will response http status code(500) and the custom message ("it is custom error message") to our iflow.

I would like to know how to catch the custom message returned from the java application in our iflow exception sub process.

Best regards,

Nyein

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

Hi nyeinpyaesone72,

Please look into below link for more details.

Script Example for Exception Handling in HTTP Receiver

https://help.sap.com/viewer/368c481cd6954bdfa5d0435479fd4eaf/Cloud/en-US/a443efe1d5d2403fb95ee9def1a...

hope this helps !

thanks and regards,

Praveen T

yatanveersingh
Active Participant
0 Kudos

did you try using, ${exception.message}

former_member655824
Participant
0 Kudos

Hi ,

Thanks for answer.

As per my test, ${exception.message} can only get http response message suc as 500 internal sever depending on http status code 500.

Best regards,

Nyein.

yatanveersingh
Active Participant
0 Kudos

try, ${exception.stacktrace}

do you see your custom error message coming to CPI in any headers, use trace to increase log level and see where is your custom error coming.