{
return ec.methodException( o.getClass(), methodUsed, (Exception)ite.getTargetException() );
}
catch( Exception e )
{
throw new MethodInvocationException(
"Invocation of method '" + methodUsed + "'"
+ " in " + o.getClass()
+ " threw exception "
+ ite.getTargetException().getClass() + " : "
+ ite.getTargetException().getMessage(),
ite.getTargetException(), methodUsed );
}
}
else
{
/*
* no event cartridge to override. Just throw
*/
throw new MethodInvocationException(
"Invocation of method '" + methodUsed + "'"
+ " in " + o.getClass()
+ " threw exception "
+ ite.getTargetException().getClass() + " : "
+ ite.getTargetException().getMessage(),