jQuery in Action, 2nd edition*
The moose likes Beginning Java and the fly likes Capturing printStackTrace() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Capturing printStackTrace()" Watch "Capturing printStackTrace()" New topic
Author

Capturing printStackTrace()

Michael Hildner
Ranch Hand

Joined: Oct 13, 2000
Posts: 297
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

Joined: Jan 07, 1999
Posts: 6920


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Michael Hildner
Ranch Hand

Joined: Oct 13, 2000
Posts: 297
Thank you.
 
GeeCON Prague 2014
 
subject: Capturing printStackTrace()