commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t.@apache.org
Subject svn commit: r1556492 - in /commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/access: CacheAccess.java GroupCacheAccess.java
Date Wed, 08 Jan 2014 11:14:40 GMT
Author: tv
Date: Wed Jan  8 11:14:39 2014
New Revision: 1556492

URL: http://svn.apache.org/r1556492
Log:
Catch more specific exceptions

Modified:
    commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/access/CacheAccess.java
    commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/access/GroupCacheAccess.java

Modified: commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/access/CacheAccess.java
URL: http://svn.apache.org/viewvc/commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/access/CacheAccess.java?rev=1556492&r1=1556491&r2=1556492&view=diff
==============================================================================
--- commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/access/CacheAccess.java (original)
+++ commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/access/CacheAccess.java Wed Jan
 8 11:14:39 2014
@@ -236,7 +236,7 @@ public class CacheAccess<K extends Seria
 
             this.cacheControl.update( ce );
         }
-        catch ( Exception e )
+        catch ( IOException e )
         {
             throw new CacheException( e );
         }

Modified: commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/access/GroupCacheAccess.java
URL: http://svn.apache.org/viewvc/commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/access/GroupCacheAccess.java?rev=1556492&r1=1556491&r2=1556492&view=diff
==============================================================================
--- commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/access/GroupCacheAccess.java
(original)
+++ commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/access/GroupCacheAccess.java
Wed Jan  8 11:14:39 2014
@@ -19,6 +19,7 @@ package org.apache.commons.jcs.access;
  * under the License.
  */
 
+import java.io.IOException;
 import java.io.Serializable;
 import java.util.HashSet;
 import java.util.Set;
@@ -138,7 +139,7 @@ public class GroupCacheAccess<K extends 
 
             this.cacheControl.update( ce );
         }
-        catch ( Exception e )
+        catch ( IOException e )
         {
             throw new CacheException( e );
         }



Mime
View raw message