Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-1074

Better exception reporting with line number

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.6-beta-1
    • None
    • None

    Description

      Hi,
      when an exception is raised this msg is reported

      Caught: java.lang.ClassCastException

      I think something like this

      Caught: java.lang.ClassCastException at methodName(file.groovy:123)

      would be much better.
      If all this infos are not available or are too difficult to extract (maybe with compiled classes) as much infos as possibile should be given.

      A workaround is to run the script with the -d option (debug mode).

      Bye

      Lorenzo

      Attachments

        Activity

          People

            paulk Paul King
            lorenzo lorenzo
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: