1 7 package org.jboss.cache.config; 8 9 import org.jboss.cache.CacheException; 10 11 import java.util.ArrayList ; 12 import java.util.List ; 13 14 19 public class ConfigurationException extends CacheException 20 { 21 22 private static final long serialVersionUID = -5576382839360927955L; 23 24 private List <String > erroneousAttributes = new ArrayList <String >(); 25 26 public ConfigurationException(Exception e) 27 { 28 super(e); 29 } 30 31 public ConfigurationException(String string) 32 { 33 super(string); 34 } 35 36 public ConfigurationException(String string, String erroneousAttribute) 37 { 38 super(string); 39 erroneousAttributes.add(erroneousAttribute); 40 } 41 42 public ConfigurationException(String string, Throwable throwable) 43 { 44 super(string, throwable); 45 } 46 47 public List <String > getErroneousAttributes() 48 { 49 return erroneousAttributes; 50 } 51 52 public void addErroneousAttribute(String s) 53 { 54 erroneousAttributes.add(s); 55 } 56 } 57 | Popular Tags |