Cleanup RuntimeException throws
[mdsal.git] / binding / mdsal-binding-spec-util / src / main / java / org / opendaylight / mdsal / binding / spec / reflect / StringValueObjectFactory.java
index 41328d5469d911cdde396c8c5caabf73b79f7e17..c2ae37ab30e54c00d4281d0f694b0683fc3c3fd8 100644 (file)
@@ -139,7 +139,7 @@ public final class StringValueObjectFactory<T> {
             return ret;
         } catch (Throwable e) {
             Throwables.throwIfUnchecked(e);
-            throw new RuntimeException(e);
+            throw new IllegalStateException("Failed to instantiate object with value " + string, e);
         }
     }