Fix nemo-sonar build errors.
[nemo.git] / nemo-impl / src / main / java / org / opendaylight / nemo / intent / IntentResolver.java
index 1ed17fbab4e82da577182b6920c86948015c2f25..d8d03e5a0cb2c87f19049ff0b870fcd7aa320748 100644 (file)
@@ -179,7 +179,10 @@ public class IntentResolver implements AutoCloseable {
 \r
             try {\r
                 result = readWriteTransaction.read(LogicalDatastoreType.CONFIGURATION, userVnPnMappingIid).get();\r
-            } catch ( InterruptedException | ExecutionException exception ) {\r
+            } catch ( InterruptedException exception ) {\r
+                throw new IntentResolutionException("Can not read the vn-pn mapping results for the user " +\r
+                        userId.getValue() + ".");\r
+            } catch ( ExecutionException exception ) {\r
                 throw new IntentResolutionException("Can not read the vn-pn mapping results for the user " +\r
                         userId.getValue() + ".");\r
             }\r
@@ -220,7 +223,10 @@ public class IntentResolver implements AutoCloseable {
 \r
         try {\r
             result = readWriteTransaction.read(LogicalDatastoreType.CONFIGURATION, userIid).get();\r
-        } catch ( InterruptedException | ExecutionException exception ) {\r
+        } catch ( InterruptedException exception ) {\r
+            throw new IntentResolutionException("Can not read the data of the user " +\r
+                    userId.getValue() + ".");\r
+        } catch ( ExecutionException exception ) {\r
             throw new IntentResolutionException("Can not read the data of the user " +\r
                     userId.getValue() + ".");\r
         }\r