You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2003/07/14 15:35:44 UTC

DO NOT REPLY [Bug 21569] New: - ExceptionHandler modification to provide access to the stack trace

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=21569>.
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=21569

ExceptionHandler modification to provide access to the stack trace

           Summary: ExceptionHandler modification to provide access to the
                    stack trace
           Product: Struts
           Version: 1.1 Final
          Platform: All
               URL: n/a
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Controller
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: Clay.Olbon@raremedium.net


Full straces are often critical during the development process. I suggest a 
modification to the standard ExceptionHandler to provide easier access to stack 
traces in subclasses, without having to recreate the logic from the 
ExceptionHandler. Probably the simplest way to do this without breaking 
existing code is to provide a protected method like:

    protected void logException(Exception ex) {
        // Does nothing by default
    }

This would get called by the execute() method.

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org