Open Source Repository

Home /hibernate/hibernate-3.2.4.ga | Repository Home



org/hibernate/cache/NoCachingEnabledException.java
// $Id: NoCachingEnabledException.java 6433 2005-04-15 18:20:03Z steveebersole $
package org.hibernate.cache;

import org.hibernate.cfg.Environment;

/**
 * Implementation of NoCachingEnabledException.
 *
 @author Steve Ebersole
 */
public class NoCachingEnabledException extends CacheException {
  private static final String MSG =
          "Second-level cache is not enabled for usage [" +
          Environment.USE_SECOND_LEVEL_CACHE +
          " | " + Environment.USE_QUERY_CACHE + "]";

  public NoCachingEnabledException() {
    superMSG );
  }
}