Catch a specific exception, not generic Exception

Change-Id: I7e087de452e093b2d7bc3d098847d51b4dff9460
diff --git a/core/store/dist/src/main/java/org/onosproject/store/newresource/impl/ConsistentResourceStore.java b/core/store/dist/src/main/java/org/onosproject/store/newresource/impl/ConsistentResourceStore.java
index 03d2637..ea8db97 100644
--- a/core/store/dist/src/main/java/org/onosproject/store/newresource/impl/ConsistentResourceStore.java
+++ b/core/store/dist/src/main/java/org/onosproject/store/newresource/impl/ConsistentResourceStore.java
@@ -102,7 +102,7 @@
             }
             tx.commit();
             return true;
-        } catch (Exception e) {
+        } catch (TransactionException e) {
             log.error("Exception thrown, abort the transaction", e);
             tx.abort();
             return false;