Wouldn't it be worth adding a separate branch
for RuntimeException like this:
if (t instanceof RuntimeException)
{
throw (RuntimeException)t;
}
elseif (t instanceof Exception)
...
-Eric
On Thursday, May 9, 2002, at 03:46 PM, [EMAIL PROTECTED] wrote:
> + Throwable t = ite.getTargetException();
> + if (t instanceof Exception)
> + {
> + throw (Exception)t;
> + }
> + else if (t instanceof java.lang.Error)
> + {
> + throw (java.lang.Error)t;
> + }
> + else
> + {
> + // this should not happen, but something could throw
> + // an instance of Throwable
> + throw new TurbineException(t);
> + }
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>