Cleanup RuntimeException throws
[mdsal.git] / binding / mdsal-binding-spec-util / src / main / java / org / opendaylight / mdsal / binding / spec / reflect / StringValueObjectFactory.java
index 06af2a195f2f62e23035d01bff10a3ae93520674..02f6ac8195af94d40143254f3cbbebd75ad157c9 100644 (file)
@@ -147,7 +147,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);
         }
     }