On Aug 15, 2006, at 5:55 AM, Rick wrote:

I just noticed a piece of code that implements Reference and it just threw away any exceptions it received. Wanting to fix it I noticed that the SPI interface did not list any exceptions. What is is the strategy here? Should we be throwing unchecked exceptions in these cases? I was specifically looking at the method createTargetInvoker but I think given the wide range of implementations possible any one these could have ...an issue to report.

Which code throws away the exception? That seems wrong.

Generally I prefer unchecked over checked exceptions for things that cannot reasonably be recovered from. We had guidelines for exception handling that were drawn up at the outset of the project that somehow got lost from the web site here:

https://svn.apache.org/repos/asf/incubator/tuscany/sandbox/jim/docs/ exception_handling.html

It would be good to get those back on the site at some point.

Jim


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to