org.sakaiproject.genericdao.api.caching.CacheKeyNotFoundException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of generic-dao Show documentation
Show all versions of generic-dao Show documentation
Generic Dao is a Java package which allows a developer to skip writing
DAOs for their persistence objects when they are using Spring and/or Hibernate.
The package was originally created by Aaron Zeckoski for the Evaluation System
project but was repackaged to make it distributable by request. It is used in the
RSF framework (http://www2.caret.cam.ac.uk/rsfwiki/). Note about the BeanUtils
provided dependency: BeanUtils is not required if you are not using it in your
project. Note about the Hibernate provided dependency: Hibernate is not required
if you are not using it in your project.
/**
* $Id$
* $URL$
* CacheObjectNotFoundException.java - genericdao - May 14, 2008 12:16:52 PM - azeckoski
**************************************************************************
* Copyright (c) 2008 Aaron Zeckoski
* Licensed under the Apache License, Version 2.0
*
* A copy of the Apache License has been included in this
* distribution and is available at: http://www.apache.org/licenses/LICENSE-2.0.txt
*
* Aaron Zeckoski ([email protected]) ([email protected]) ([email protected])
*/
package org.sakaiproject.genericdao.api.caching;
/**
* thrown if an object cannot be found in a cache
*
* @author Aaron Zeckoski ([email protected])
*/
public class CacheKeyNotFoundException extends RuntimeException {
private static final long serialVersionUID = 1L;
public String cacheName;
public String cacheKey;
public CacheKeyNotFoundException(String message, String cacheName, String cacheKey) {
super(message);
this.cacheName = cacheName;
this.cacheKey = cacheKey;
}
public CacheKeyNotFoundException(String message, String cacheName,
String cacheKey, Throwable cause) {
super(message, cause);
this.cacheName = cacheName;
this.cacheKey = cacheKey;
}
}