Hi All,
Need help in capturing the complete error message as shown below(also attached the screen shot). which highlights the field value that has exceeded the max length.
If I have used ${exception.message} and ${exception.stacktrace} .
${exception.message} - This returns only the short description of the error message - debugging error message
Debugging error message :
---- Debugging information ---- cause-exception : com.sap.gateway.core.ip.processor.exception.ODataProcessingException cause-message : OSCI issue class : java.util.ArrayList required-type : java.util.ArrayList converter-type : com.sap.gateway.core.ip.processor.converter.ConverterXMLToList path : line number : 19 version : not available -------------------------------
${exception.stacktrace} - This returns full stack trace message , which is not needed as the error message is too long.
I want to capture the complete message along with the field value that is passed wrong . so that will easier to understand want went wrong.
Complete Message:
---- Debugging information ---- cause-exception : com.sap.gateway.core.ip.processor.exception.ODataProcessingException cause-message : OSCI issue class : java.util.ArrayList required-type : java.util.ArrayList converter-type : com.sap.gateway.core.ip.processor.converter.ConverterXMLToList path : line number : 19 version : not available ------------------------------- cause: org.apache.olingo.odata2.api.edm.EdmSimpleTypeException: The metadata constraints '[MaxLength=24]' do not allow to format the value ''XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX".
FYI.
I looked into the below forum , but when I get the class and the error message, still I get only the short description of the message.
https://answers.sap.com/questions/13191438/unable-to-capture-complete-error-details-in-cpi-ex.html
Thanks
Sai