DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19868>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19868

Exception handling in HttpClient requires redesign





------- Additional Comments From [EMAIL PROTECTED]  2003-07-13 23:21 -------
Here's patch #3.  I added a test for the exception nesting and made the
HttpException constructor and printStackTrace methods work correctly.  When
running under JDK 1.4, it now passes the "cause" parameter via the new
Throwable.initCause method and lets Throwable take care of printing stack
traces.  If on JDK 1.3 or earlier, the HttpException.printStackTrace methods
approximate the JDK 1.4 behavior.

Adrian: Does having printStackTrace also print out all of the nested exceptions
take care of some of your objections?  It seems to make the debugging quite a
bit easier because you can see the whole exception trace all the way back to the
root cause.  Now I need to go do this to our big system at work. :-)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to