sonar: use dedicated exception instead of RuntimeException
[neutron.git] / northbound-api / src / main / java / org / opendaylight / neutron / northbound / api / AbstractNeutronNorthbound.java
index c5160a000b15e5d962ccd261bd29375da70ab805..20788c62984da2bb99de0be0bddf8c3bb6c2d0c4 100644 (file)
@@ -55,7 +55,7 @@ public abstract class AbstractNeutronNorthbound<T extends INeutronObject<T>, Neu
         } catch (NoSuchMethodException | InstantiationException
                  | IllegalAccessException | InvocationTargetException e) {
             // This case shouldn't happen
-            throw new RuntimeException(e);
+            throw new IllegalArgumentException(e);
         }
     }