.InvocationTargetException
时间: 2023-10-17 08:35:42 浏览: 88
InvocationTargetException是一种包装由调用方法或构造方法所抛出异常的受查异常。它定义在java.lang.reflect包下,是标准JDK中的异常。在进行Java开发过程中,很少会遇到这个异常,但在进行Eclipse插件开发中,很多API都声明抛出此类异常,所以必须对此异常进行处理。 这个异常的getMessage()方法返回值为null,需要使用getTargetException()方法来获取这个目标异常的信息。<span class="em">1</span><span class="em">2</span>
#### 引用[.reference_title]
- *1* [InvocationTargetException异常处理](https://blog.csdn.net/znxncnfn/article/details/125095607)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [axis2 InvocationTargetException ](https://download.csdn.net/download/weixin_38669628/10988093)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文