284 |
try{ |
try{ |
285 |
ret = meth.invoke(myself, args); |
ret = meth.invoke(myself, args); |
286 |
}catch(InvocationTargetException e){ |
}catch(InvocationTargetException e){ |
287 |
throw (Exception)(e.getTargetException()); |
Throwable cause = e.getTargetException(); |
288 |
|
if (cause instanceof Exception) { |
289 |
|
throw (Exception)cause; |
290 |
|
} |
291 |
|
else if (cause instanceof Error) { |
292 |
|
throw (Error)cause; |
293 |
|
} |
294 |
|
else { |
295 |
|
throw new Error("The remote method threw a java.lang.Throwable that is neither java.lang.Exception nor java.lang.Error.", e); |
296 |
|
} |
297 |
} |
} |
298 |
return ret; |
return ret; |
299 |
} |
} |