Bug 28123 - ClientAbortException should default to the description of the wrapped exception
Summary: ClientAbortException should default to the description of the wrapped exception
Status: RESOLVED WONTFIX
Alias: None
Product: Tomcat 5
Classification: Unclassified
Component: Catalina (show other bugs)
Version: 5.0.19
Hardware: All All
: P3 minor with 1 vote (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-01 11:28 UTC by Jörg Thönnes
Modified: 2004-11-16 19:05 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jörg Thönnes 2004-04-01 11:28:04 UTC
Browsing the source code, I have seen that the call

throw new ClientAbortException( e )

does store null as the message description. IMHO, the ClientAbortException
should store the result of e.getDescription() here if no own description is
given.

If some application component later prints

    ...
    } catch ( Exception e ) {
        log( "..." + e );
    }

there would be a "null" in the log instead of anything useful.

This would make the logging a little bit more useful.

Cheers, Jörg
Comment 1 william.barker 2004-04-02 23:56:52 UTC
Actually, ClientAbortException.toString will print out the "root-cause" 
exception.  This means that your specific example above will work fine.
Comment 2 Remy Maucherat 2004-04-06 09:20:22 UTC
I agree with Bill.