Getting raw information from groovy stack trace

When an exception is thrown, I want to show some additional information (source code) for a specific exception. But grails have very hairy exceptions (it's all about the dynamic nature of groovy). This is my problem, where to get and how to display the source code. I only need file / line information.

So ... is there a way to get the file and line where the exceptions were thrown in grails / groovy?

+1


a source to share


1 answer


Hmm, don't you get it already? All my grails exceptions contain file / line information by default. The only difficulty is that if the exception is in the closure, it doesn't display the actual name of the closure. Could you post a sample stacktrace?



0


a source







All Articles