java.lang.reflect.InvocationTargetException - 确定实际错误?

Hei*_*ing 1 java invocationtargetexception

我正在使用Method.invoke()来调用第三方jar中的函数.有时我会抛出java.lang.reflect.InvocationTargetException.你怎么能弄清楚真正的例外是什么呢?

Fra*_* IV 5

InvocationTargetException.getCause()它使用1.4中引入的正常异常链接