> I noticed that JBookTraderException now is a subclass of
> RuntimeException and I don't agree with you, please refer to this
> article
> http://java.sun.com/docs/books/tutorial/essential/exceptions/runtime....
>

This is a good article, and I agree with what it had to say. But
notice this:

"Here's the bottom line guideline: If a client can reasonably be
expected to recover from an exception, make it a checked exception. If
a client cannot do anything to recover from the exception, make it an
unchecked exception."

This is precisely the reason why I changed JBookTraderException to
extend RuntimeException, rather than a checked exception. It's because
what was happening before is that JBookTraderException was re-thrown
up the caller stack, because there was no reasonable way to recover
from it. I am willing to debate this, though.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"JBookTrader" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jbooktrader?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to