Clover coverage report -
Coverage timestamp: Sat Feb 28 2004 21:40:56 EST
file stats: LOC: 38   Methods: 2
NCLOC: 11   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
NeedsRefreshException.java - 100% 100% 100%
coverage
 1   
 /*
 2   
  * Copyright (c) 2002-2003 by OpenSymphony
 3   
  * All rights reserved.
 4   
  */
 5   
 package com.opensymphony.oscache.base;
 6   
 
 7   
 
 8   
 /**
 9   
  * This exception is thrown when retrieving an item from cache and it is
 10   
  * expired.
 11   
  * Note that for fault tolerance purposes, it is possible to retrieve the
 12   
  * current cached object from the exception.
 13   
  *
 14   
  * @author        <a href="mailto:fbeauregard@pyxis-tech.com">Francois Beauregard</a>
 15   
  * @version        $Revision: 1.1 $
 16   
  */
 17   
 public final class NeedsRefreshException extends Exception {
 18   
     /**
 19   
      * Current object in the cache
 20   
      */
 21   
     private Object cacheContent = null;
 22   
 
 23   
     /**
 24   
      * Create a NeedsRefreshException
 25   
      */
 26  101
     public NeedsRefreshException(Object cacheContent) {
 27  101
         super();
 28  101
         this.cacheContent = cacheContent;
 29   
     }
 30   
 
 31   
     /**
 32   
      * Retrieve current object in the cache
 33   
      */
 34  27
     public Object getCacheContent() {
 35  27
         return cacheContent;
 36   
     }
 37   
 }
 38