ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akuznet...@apache.org
Subject [05/36] incubator-ignite git commit: # ignite-292 : fix thrown exception type by HibernateReadWriteAccessStrategy#unlock(...)
Date Thu, 26 Feb 2015 03:54:19 GMT
# ignite-292 : fix thrown exception type by HibernateReadWriteAccessStrategy#unlock(...)


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/b9615dc5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/b9615dc5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/b9615dc5

Branch: refs/heads/ignite-preload-debug
Commit: b9615dc57dfe779946ef5a60578c216c0228846e
Parents: 5d69488
Author: Artem Shutak <ashutak@gridgain.com>
Authored: Wed Feb 18 12:46:08 2015 +0300
Committer: Artem Shutak <ashutak@gridgain.com>
Committed: Wed Feb 18 13:10:32 2015 +0300

----------------------------------------------------------------------
 .../cache/hibernate/HibernateReadWriteAccessStrategy.java    | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/b9615dc5/modules/hibernate/src/main/java/org/apache/ignite/cache/hibernate/HibernateReadWriteAccessStrategy.java
----------------------------------------------------------------------
diff --git a/modules/hibernate/src/main/java/org/apache/ignite/cache/hibernate/HibernateReadWriteAccessStrategy.java
b/modules/hibernate/src/main/java/org/apache/ignite/cache/hibernate/HibernateReadWriteAccessStrategy.java
index 3ca466d..1b083a1 100644
--- a/modules/hibernate/src/main/java/org/apache/ignite/cache/hibernate/HibernateReadWriteAccessStrategy.java
+++ b/modules/hibernate/src/main/java/org/apache/ignite/cache/hibernate/HibernateReadWriteAccessStrategy.java
@@ -125,7 +125,7 @@ public class HibernateReadWriteAccessStrategy extends HibernateAccessStrategyAda
             if (ctx != null)
                 unlock(ctx, key);
         }
-        catch (IgniteCheckedException e) {
+        catch (Exception e) {
             rollbackCurrentTx();
 
             throw new CacheException(e);
@@ -152,7 +152,7 @@ public class HibernateReadWriteAccessStrategy extends HibernateAccessStrategyAda
 
             return false;
         }
-        catch (IgniteCheckedException e) {
+        catch (Exception e) {
             rollbackCurrentTx();
 
             throw new CacheException(e);
@@ -197,9 +197,9 @@ public class HibernateReadWriteAccessStrategy extends HibernateAccessStrategyAda
      *
      * @param ctx Transaction context.
      * @param key Key.
-     * @throws IgniteCheckedException If failed.
+     * @throws CacheException If failed.
      */
-    private void unlock(TxContext ctx, Object key) throws IgniteCheckedException {
+    private void unlock(TxContext ctx, Object key) throws CacheException {
         if (ctx.unlocked(key)) { // Finish transaction if last key is unlocked.
             txCtx.remove();
 


Mime
View raw message