01: // $Id: NoCachingEnabledException.java 6433 2005-04-15 18:20:03Z steveebersole $
02: package org.hibernate.cache;
03:
04: import org.hibernate.cfg.Environment;
05:
06: /**
07: * Implementation of NoCachingEnabledException.
08: *
09: * @author Steve Ebersole
10: */
11: public class NoCachingEnabledException extends CacheException {
12: private static final String MSG = "Second-level cache is not enabled for usage ["
13: + Environment.USE_SECOND_LEVEL_CACHE
14: + " | "
15: + Environment.USE_QUERY_CACHE + "]";
16:
17: public NoCachingEnabledException() {
18: super(MSG);
19: }
20: }
|