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

Add method to get printed stack trace in Throwable

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.4.4
    • 2.5.3
    • groovy-jdk
    • None

    Description

      It would be very handy if Groovy JDK provided a method in Throwable to get the printed stack trace as a string.
      This would save the user to call the default printStackTrace(PrintWriter) method with a StringWriter and retrieve the result from there.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mauromol Mauro Molinari
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: