Explorar el Código

Invoker PRZEwrapowuje (a nie Owrapowuje) wyjątek InvocationTargetException

Ranides Atterwim hace 13 años
padre
commit
c2e2d26f9b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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);
         }