Project: springxd
Issue XD-1265: Surface better exception information to client
In trying to upgrade to latest SI, I encountered a failing test because it expects an error message to contain something, but SI changes make it disappear (the problem is an SI exception now has an explicit message and so does not expose its cause message anymore) This, however is the manifest of a deeper "problem". We currently expose the getMessage() of any generic Exception caught, in the VndError REST construct. But this is not enough. Things that we can consider are: 1) adding the whole stacktrace of the caught exception, as a String. This is not very good at it leaks java specific details 2) unwrap the caught exception to get to the deepest cause. This may not be what we want everytime 3) construct a VndErrors (note the 's') made of each layered exception 4) similar to 1), but not using the stacktrace, only the messages of each cause etc
Story points: 7