Article View: borland.public.jbuilder.java.language
Article #16185Re: Transform Stacktrace to a String
From: Martin Pfeifer
Date: Wed, 24 Mar 1999 00:00
Date: Wed, 24 Mar 1999 00:00
23 lines
1075 bytes
1075 bytes
Sorry, this doesn't work
myException.toString() only print "java.Exception: ExceptionMessage",
but not the StackTrace.
Nicolas REDONDO schrieb:
> 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:
<36F8FF4C.373F83F3@fpg.de>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<36F7A710.BEE95513@fpg.de> <36F7C718.4A14BA9E@copernic.marben.fr>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,2258fda3238f31af X-Google-Attributes: gidf74b3,public From: Martin Pfeifer <Martin.Pfeifer@fpg.de> Subject: Re: Transform Stacktrace to a String Date: 1999/03/24 Message-ID: <36F8FF4C.373F83F3@fpg.de> X-Deja-AN: 458401239 Content-Transfer-Encoding: 7bit References: <36F7A710.BEE95513@fpg.de> <36F7C718.4A14BA9E@copernic.marben.fr> X-Accept-Language: de Content-Type: text/plain; charset=us-ascii Organization: Frost & Partner GmbH Mime-Version: 1.0 Reply-To: Martin.Pfeifer@fpg.de Newsgroups: borland.public.jbuilder.java.language