/* * Hibernate, Relational Persistence for Idiomatic Java * * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. */ package org.hibernate.cache; import org.hibernate.cfg.Environment; /** * Indicates a condition where a second-level cache implementation was expected to be to available, but * none was found on the classpath. * * @author Steve Ebersole */ public class NoCacheRegionFactoryAvailableException extends CacheException { private static final String MSG = String.format( "Second-level cache is used in the application, but property %s is not given; " + "please either disable second level cache or set correct region factory using the %s setting " + "and make sure the second level cache provider (hibernate-infinispan, e.g.) is available on the " + "classpath.", Environment.CACHE_REGION_FACTORY, Environment.CACHE_REGION_FACTORY ); /** * Constructs a NoCacheRegionFactoryAvailableException with a standard message. */ public NoCacheRegionFactoryAvailableException() { super( MSG ); } }