InvocationTargetException错误

String msg = null;
if (e instanceof InvocationTargetException)
{
    Throwable targetEx = ((InvocationTargetException) e)
            .getTargetException();
    if (targetEx != null)
    {
        msg = targetEx.getMessage();
    }
} else
{
    msg = e.getMessage();
}
相关推荐
©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页