[jboss-cvs] JBossCache/src-50/org/jboss/cache/pojo/interceptors ...

Ben Wang bwang at jboss.com
Fri Dec 29 22:56:36 EST 2006


  User: bwang   
  Date: 06/12/29 22:56:36

  Modified:    src-50/org/jboss/cache/pojo/interceptors 
                        PojoTxInterceptor.java
  Log:
  Throw a more verbose rollback exception in PojoCacheException.
  
  Revision  Changes    Path
  1.8       +3 -5      JBossCache/src-50/org/jboss/cache/pojo/interceptors/PojoTxInterceptor.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: PojoTxInterceptor.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src-50/org/jboss/cache/pojo/interceptors/PojoTxInterceptor.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -b -r1.7 -r1.8
  --- PojoTxInterceptor.java	17 Sep 2006 02:52:29 -0000	1.7
  +++ PojoTxInterceptor.java	30 Dec 2006 03:56:36 -0000	1.8
  @@ -22,7 +22,7 @@
    * Interceptor (done via aop advice) for transaction
    *
    * @author Ben Wang
  - * @version $Id: PojoTxInterceptor.java,v 1.7 2006/09/17 02:52:29 bwang Exp $
  + * @version $Id: PojoTxInterceptor.java,v 1.8 2006/12/30 03:56:36 bwang Exp $
    */
   public class PojoTxInterceptor extends AbstractInterceptor
   {
  @@ -87,10 +87,8 @@
                     exn.printStackTrace();
                  }
   
  -               if (!(e instanceof PojoCacheException))
  -                  throw new RuntimeException("PojoCache.putObject(): id: " + id, e);
  -               else
  -                  throw (PojoCacheException) e;
  +               throw new PojoCacheException("PojoCache operation will be rollback. id: " + id
  +                       + ". Operation: " +invocation.getMethod().getName(), e);
               }
            } else
            {
  
  
  



More information about the jboss-cvs-commits mailing list