tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Wahl" <>
Subject How to fill what printStackTrace() output into a String?
Date Tue, 13 Jan 2004 13:15:59 GMT
Hi, all 

I want to get the exception stack trace and I 'd like to use a 
String to contain the info, How can I do?

I am thinking about this: (ex is an instance of Exception )

          PrintStream trace = new PrintStream();
          String str = doSomeThing (trace); 

Then how to write the function doSomeThing() ?

Is there any elegance solution?

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message