At 08:43 26.08.2002 +0200, you wrote: >Hello, > >I planed to use Log4J for my applikation but I got a problem by logging the >whole stack of my own Exception. > >For excample: >I wrote an exceptionclass extending exception. The construktor expacts a >parentexception as a parameter. And finally I overwrote the method >printStackTrace to get both the parentexception and my own exception in one >stacktrace. > >Like this: > > public class WQException extends Exception > { > private Exception parent = null; > > public WQException(String s, Exception parent) > { > super(s); > this.parent=parent; > } > > public void printStackTrace() > { > super.printStackTrace(s); > if ( parent != null ) > { > s.println("nested Exception is:"); > parent.printStackTrace(s); > } > } > }
The above code does not compile. Please provide code that compiles so that we can discuss it. -- Ceki -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>