This makes sense to me.  We have lots of code that doesn't conform
to this pattern (and I am the culprit in places).  It would be good
to be more consistent so that user code could contain simpler
try/catch logic that would handle all exceptions from Tuscany.

  Simon

Scott Kurz wrote:

I was wondering what people thought about the idea of making more of an
effort to use ServiceRuntimeException to wrap whatever RuntimeExceptions are
thrown through the runtime.
For example, JDKInvocationHandler could catch UndeclaredThrowableException
and throw back ServiceRuntimeException instead.

This would make ServiceRuntimeException more a part of the SCA Java
programming model as opposed to just a useful base class for SCA runtime
implementors.

I don't know if I'm reading into the specs too much.. or maybe something
like I suggested was an intent.     Still, any thoughts about a Tuscany view
here?   (apologies as always if this
was discussed but I missed it).

Scott

<http://java.sun.com/j2se/1.5.0/docs/api/java/lang/reflect/UndeclaredThrowableException.html>




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

Reply via email to