Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 Method.invoke() 调用第三方 jar 中的函数。有时我会抛出 java.lang.reflect.InvocationTargetException。你怎么能找出真正的例外是什么?
InvocationTargetException.getCause() 它使用 1.4 中引入的正常异常链接的东西