SourceForge has been redesigned. Learn more.
Close

#67 ExceptionDuringTestError - getCause()

open
nobody
None
5
2004-10-06
2004-10-06
No

ExceptionDuringTestError should provide an accessor for
instance variable rootCause or better yet - use the Java
1.4 exception chaining mechanism.

The attached patch uses exception chaining.

Discussion

  • Moxley Stratton

    Moxley Stratton - 2004-12-13

    Logged In: YES
    user_id=187608

    Also, it would be better to throw an Exception instead of an
    Error. The Error class is for serious errors that the
    application should not handle.

     
  • Moxley Stratton

    Moxley Stratton - 2004-12-14

    Logged In: YES
    user_id=187608

    However, ServletException (J2EE 1.4) doesn't use the
    exception chaining model, so if your Action throws an
    exception, the ActionServlet will not chain it using the 1.4
    exception chaining model. It does, however, have a
    getRootCause() method that will return the "root exception".
    Maybe ExceptionDuringTestError should at least have a
    getRootCause()?

     

Log in to post a comment.