You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Eric Milles (Jira)" <ji...@apache.org> on 2022/11/02 14:57:00 UTC

[jira] [Commented] (GROOVY-7554) Add method to get printed stack trace in Throwable

    [ https://issues.apache.org/jira/browse/GROOVY-7554?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17627761#comment-17627761 ] 

Eric Milles commented on GROOVY-7554:
-------------------------------------

org.codehaus.groovy.runtime.DefaultGroovyMethods#asString(Throwable)

> Add method to get printed stack trace in Throwable
> --------------------------------------------------
>
>                 Key: GROOVY-7554
>                 URL: https://issues.apache.org/jira/browse/GROOVY-7554
>             Project: Groovy
>          Issue Type: Improvement
>          Components: groovy-jdk
>    Affects Versions: 2.4.4
>            Reporter: Mauro Molinari
>            Priority: Minor
>
> 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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)