Article View: borland.public.jbuilder.java.language
Article #16167Re: Transform Stacktrace to a String
From: Nicolas REDONDO
Date: Tue, 23 Mar 1999 00:00
Date: Tue, 23 Mar 1999 00:00
16 lines
826 bytes
826 bytes
I think you should write :
catch (Exception e) {
String myException = new String(e.toString());
}
Nico
Martin Pfeifer wrote:
> Is it possible to write the output of the function
> exception.printStackTrace() to a string ?
>
> Thanks a lot.
>
> Martin Pfeifer
Technical Details
Message-ID:
<36F7C718.4A14BA9E@copernic.marben.fr>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<36F7A710.BEE95513@fpg.de>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,2258fda3238f31af X-Google-Attributes: gidf74b3,public From: Nicolas REDONDO <nredondo@copernic.marben.fr> Subject: Re: Transform Stacktrace to a String Date: 1999/03/23 Message-ID: <36F7C718.4A14BA9E@copernic.marben.fr> X-Deja-AN: 458029651 Content-Transfer-Encoding: 7bit References: <36F7A710.BEE95513@fpg.de> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Steria Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language