[jboss-cvs] JBossCache/src/org/jboss/cache ...
Brian Stansberry
brian.stansberry at jboss.com
Thu Feb 15 21:13:35 EST 2007
User: bstansberry
Date: 07/02/15 21:13:35
Modified: src/org/jboss/cache CacheImpl.java
Log:
Tighten exception handling a bit
Revision Changes Path
1.47 +8 -4 JBossCache/src/org/jboss/cache/CacheImpl.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: CacheImpl.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/CacheImpl.java,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -b -r1.46 -r1.47
--- CacheImpl.java 8 Feb 2007 17:03:27 -0000 1.46
+++ CacheImpl.java 16 Feb 2007 02:13:35 -0000 1.47
@@ -3645,12 +3645,16 @@
{
return interceptor_chain.invoke(m);
}
- catch (Throwable t)
+ catch (CacheException e)
{
- if (t instanceof CacheException)
+ throw e;
+ }
+ catch (RuntimeException e)
{
- throw (CacheException) t;
+ throw e;
}
+ catch (Throwable t)
+ {
throw new RuntimeException(t);
}
}
More information about the jboss-cvs-commits
mailing list