we can use getErrorString() and getErrorDetail() to catch error information from failed queries.
getErrorString() only contains a short description, while getErrorDetail returns the short-description + some long text + some XML content.
Does anyone know a way to only get the xml part of getErrorDetails() that contain the item information?
I most of the time use getErrorString, but I have a use case for mass operations, where the xml part contains the relevant information if something went wrong.
I want to provide more precise feedback to the end users (what has failed exactly), but also use the xml information to call some "automatically repair if this error happens" function. But for this function I would need the item information in the xml part.
Does anyone has and idea to get more specific error details?
Thanks and best regards!