瀏覽代碼

Invoker PRZEwrapowuje (a nie Owrapowuje) wyjątek InvocationTargetException

Ranides Atterwim 13 年之前
父節點
當前提交
c2e2d26f9b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/net/ranides/assira/reflection/Invoker.java

+ 1 - 1
src/main/java/net/ranides/assira/reflection/Invoker.java

@@ -35,7 +35,7 @@ public final class Invoker {
         } catch (IllegalAccessException ex) {
             throw new InspectException(ex);
         } catch (InvocationTargetException ex) {
-            throw new InspectInvokeException(ex);
+            throw new InspectInvokeException(ex.getTargetException());
         } catch (IllegalArgumentException ex) {
             throw new InspectException(ex);
         }