Getting source code information from groovy stack trace

Posted by dotsid on Stack Overflow See other posts from Stack Overflow or by dotsid
Published on 2009-05-26T00:26:44Z Indexed on 2010/05/30 20:02 UTC
Read the original article Hit count: 201

Filed under:
|
|

When exception generated I want to show some additional information (source code) for particular exception. But grails have very hairy exceptions (it's all about groovy dynamic nature). It's my problem where to get and how to display source code. All I need is file/line information.

So... Is there any possibility to get file and line where exception were generated in grails/groovy?

© Stack Overflow or respective owner

Related posts about grails

Related posts about groovy