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

org.infinispan.commons.CacheConfigurationException Maven / Gradle / Ivy

There is a newer version: 9.1.7.Final
Show newest version
package org.infinispan.commons;

import java.util.ArrayList;
import java.util.List;

/**
 * An exception that represents an error in the configuration.  This could be a parsing error or a logical error
 * involving clashing configuration options or missing mandatory configuration elements.
 *
 * @author Manik Surtani ([email protected])
 *
 * @since 4.0
 */
public class CacheConfigurationException extends CacheException {

   /** The serialVersionUID */
   private static final long serialVersionUID = -7103679310393205388L;
   private List erroneousAttributes = new ArrayList(4);

   public CacheConfigurationException(Exception e) {
      super(e);
   }

   public CacheConfigurationException(String string) {
      super(string);
   }

   public CacheConfigurationException(String string, String erroneousAttribute) {
      super(string);
      erroneousAttributes.add(erroneousAttribute);
   }

   public CacheConfigurationException(String string, Throwable throwable) {
      super(string, throwable);
   }

   public List getErroneousAttributes() {
      return erroneousAttributes;
   }

   public void addErroneousAttribute(String s) {
      erroneousAttributes.add(s);
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy