All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.giffing.bucket4j.spring.boot.starter.exception.JCacheNotFoundException Maven / Gradle / Ivy

There is a newer version: 0.12.7
Show newest version
package com.giffing.bucket4j.spring.boot.starter.exception;

/**
 * This exception should be thrown if no cache was found
 */
public class JCacheNotFoundException extends Bucket4jGeneralException {

	private static final long serialVersionUID = 1L;

	private final String cacheName;

	/**
	 * @param cacheName the missing cache key
	 */
	public JCacheNotFoundException(String cacheName) {
		super("The cache name '" + cacheName + "' defined in the property is not configured in the caching provider");
		this.cacheName = cacheName;

	}

	public String getCacheName() {
		return cacheName;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy