开发者

java.lang.reflect.InvocationTargetException - determine actual error?

I'm using Method.invoke() to call a function in a third party jar. Sometimes I get a java.lang.reflect.InvocationTargetException thrown. How can you figure out what the real exception was from 开发者_Go百科this?


InvocationTargetException.getCause() it uses the normal exception chaining stuff introduced in 1.4

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜