commit | 264e4b7136450eb059866195489f66916836ca04 | [log] [tgz] |
---|---|---|
author | Sho SHIMIZU <sshimizu@us.fujitsu.com> | Wed Aug 12 12:22:14 2015 -0700 |
committer | Sho SHIMIZU <sshimizu@us.fujitsu.com> | Wed Aug 12 12:22:14 2015 -0700 |
tree | 0748eeb9658873ea0381e9efdccb9d66c80d65cc | |
parent | 3d6a2f6612c85c55756f4260f8dbc9a212c96882 [diff] |
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;