InvocationTargetException

在使用反射的适合,调用的方法无论抛出什么异常,都会变成InvocationTargetException,要想得到原始的异常,必须使用getTargetException()

原文地址:https://www.cnblogs.com/zhanghaoh/p/3628410.html