Commits

Anonymous committed 36caa99

NRE allows usage of message and content parameter

Comments (0)

Files changed (1)

src/java/com/opensymphony/oscache/base/NeedsRefreshException.java

 /*
- * Copyright (c) 2002-2003 by OpenSymphony
+ * Copyright (c) 2002-2007 by OpenSymphony
  * All rights reserved.
  */
 package com.opensymphony.oscache.base;
 
-
 /**
  * This exception is thrown when retrieving an item from cache and it is
  * expired.
  * @version        $Revision$
  */
 public final class NeedsRefreshException extends Exception {
+
     /**
      * Current object in the cache
      */
     private Object cacheContent = null;
+    
+    /**
+     * Create a NeedsRefreshException
+     */
+    public NeedsRefreshException(String message, Object cacheContent) {
+        super(message);
+        this.cacheContent = cacheContent;
+    }
 
     /**
      * Create a NeedsRefreshException
         super();
         this.cacheContent = cacheContent;
     }
-
+    
     /**
      * Retrieve current object in the cache
      */
     public Object getCacheContent() {
         return cacheContent;
     }
+
 }