java.lang.reflect.UndeclaredThrowableExceptionjiang
实例包含由调用处理程序抛出的经过检查的未声明异常,可以使用 getUndeclaredThrowable() 方法获取
String msg = null; if (e instanceof UndeclaredThrowableException){ Throwable targetEx = ((UndeclaredThrowableException) e).getUndeclaredThrowable(); if (targetEx != null){ msg = targetEx.getMessage(); } } else { msg = e.getMessage(); }