Article View: borland.public.jbuilder.java.language
Article #16100Re: Transform Stacktrace to a String
From: Nicolas REDONDO
Date: Wed, 24 Mar 1999 00:00
Date: Wed, 24 Mar 1999 00:00
32 lines
1230 bytes
1230 bytes
: )
ok, i'm sorry. You should try myException.fillInStackTrace() instead.
;)
Martin Pfeifer wrote:
> 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:
<36F911AD.FCD76FCE@copernic.marben.fr>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<36F7A710.BEE95513@fpg.de> <36F7C718.4A14BA9E@copernic.marben.fr> <36F8FF4C.373F83F3@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/24 Message-ID: <36F911AD.FCD76FCE@copernic.marben.fr> X-Deja-AN: 458427330 Content-Transfer-Encoding: 7bit References: <36F7A710.BEE95513@fpg.de> <36F7C718.4A14BA9E@copernic.marben.fr> <36F8FF4C.373F83F3@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