I\'ve created exception handling in my Spring application using spring SimpleMappingExceptionResolver. Everything works fine. Now I need to somehow print the caught exceptio
The easiest solution I can think of is to loop over the stack trace elements, taking advantage of the Throwable.getStackTrace() method:
Throwable.getStackTrace()
You'd need to add some formatting, of course.