Bugs item #1643849, was opened at 2007-01-24 21:48
Message generated for change (Comment added) made by henryju
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=497982&aid=1643849&group_id=61302

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: HtmlUnit plugin
>Group: Release 1.4
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Peter Mularien (pmularien)
Assigned to: Julien HENRY (henryju)
Summary: Original exception is lost when changed to RuntimeException

Initial Comment:
The implementation of HtmlUnitDialog does not maintain the exception that 
caused an error (with getCause() invoked on the RuntimeException). This makes 
it very difficult to determine what the cause of an encountered error was, and 
more importantly whether it was expected. Is it possible for this behavior to 
be modified?

I grant that implementing this behavior would potentially expose the underlying 
HtmlUnit/HttpUnit exceptions to the calling code. If there's a way to abstract 
these exceptions in some meaningful way, that would be fine too (such as what 
Spring does with interpretation of various ORM exceptions).

----------------------------------------------------------------------

>Comment By: Julien HENRY (henryju)
Date: 2007-03-03 18:12

Message:
Logged In: YES 
user_id=1235926
Originator: NO

OK, I found numerous methods where original exception was not wrapped in
RuntimeException. Feel free to reopen if I forget some one.

----------------------------------------------------------------------

Comment By: Julien HENRY (henryju)
Date: 2007-03-03 17:46

Message:
Logged In: YES 
user_id=1235926
Originator: NO

Could you please point an example where original exception is not wrapped
in the RuntimeException? I try to do this each time I can.

In experimental 2.0 version, exception mechanism was totally re written.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=497982&aid=1643849&group_id=61302

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
JWebUnit-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development

Reply via email to