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

Jakob Odersky commented on SPARK-13172:
---------------------------------------

I would suggest taking similar approach to what the Scala library does: 
https://github.com/scala/scala/blob/v2.11.7/src/library/scala/runtime/RichException.scala#L1,
 that is just call mkString on the stack trace.

Using e.printStackTrace is not as flexible, it doesn't give you a string and as 
far as I know it prints to stderr with no option to redirect.

> Stop using RichException.getStackTrace it is deprecated
> -------------------------------------------------------
>
>                 Key: SPARK-13172
>                 URL: https://issues.apache.org/jira/browse/SPARK-13172
>             Project: Spark
>          Issue Type: Sub-task
>          Components: Spark Core
>            Reporter: holdenk
>            Priority: Trivial
>
> Throwable getStackTrace is the recommended alternative.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to