Cleanup RuntimeException throws
[mdsal.git] / dom / mdsal-dom-inmemory-datastore / src / main / java / org / opendaylight / mdsal / dom / store / inmemory / AbstractDOMShardTreeChangePublisher.java
index 644e7d368c461918b7ea3a43d8ddbb616ea8a033..16290ad0661c7ffecbaf8f8065fcde8e32231718 100644 (file)
@@ -254,7 +254,7 @@ abstract class AbstractDOMShardTreeChangePublisher extends AbstractDOMStoreTreeC
                 dataTree.validate(modification);
             } catch (final DataValidationFailedException e) {
                 LOG.error("Validation failed for built modification", e);
-                throw new RuntimeException("Notification validation failed", e);
+                throw new IllegalStateException("Notification validation failed", e);
             }
 
             // strip nodes we dont need since this listener doesn't have to be registered at the root of the DataTree