File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Capturing printStackTrace()

 
Michael Hildner
Ranch Hand
Posts: 297
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to figure out how to capture the full exception message in a String. I plan on putting this in a text area so the user can copy/paste and email me the error. The printStackTrace() methods can take a printStream or printWriter obejct as an argument, but I'm not sure how to stick this info in a String.
Any help is appreciated.
Michael
 
Frank Carver
Sheriff
Posts: 6920
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Michael Hildner
Ranch Hand
Posts: 297
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic