1 17 18 package org.sape.carbon.core.config; 19 20 21 import org.sape.carbon.core.util.classify.SeverityEnum; 22 23 34 public class InvalidConfigurationException 35 extends ConfigurationRuntimeException { 36 37 38 47 public InvalidConfigurationException(Class sourceClass, 48 String documentName, 49 String propertyName) { 50 super(sourceClass, 51 "Configuration property [" 52 + propertyName 53 + "] not valid in document [" 54 + documentName 55 + "]"); 56 57 } 58 59 67 public InvalidConfigurationException(Class sourceClass, 68 String documentName, 69 String propertyName, 70 String message) { 71 super(sourceClass, 72 message 73 + "; Configuration property [" 74 + propertyName 75 + "] in document [" 76 + documentName + "]"); 77 78 } 79 87 public InvalidConfigurationException(Class sourceClass, 88 String documentName, 89 String propertyName, 90 Throwable cause) { 91 super(sourceClass, 92 "Configuration property [" 93 + propertyName 94 + "] not valid in document [" 95 + documentName 96 + "]", 97 cause); 98 99 } 100 101 110 public InvalidConfigurationException(Class sourceClass, 111 String documentName, 112 String propertyName, 113 String message, 114 Throwable cause) { 115 super(sourceClass, 116 message 117 + "; Configuration property [" 118 + propertyName 119 + "] in document [" 120 + documentName 121 + "]", 122 cause); 123 124 } 125 126 127 132 public InvalidConfigurationException(String message) { 133 super(InvalidConfigurationException.class, message); 134 } 135 136 143 public InvalidConfigurationException(String message, Throwable cause) { 144 super(InvalidConfigurationException.class, message, cause); 145 } 146 147 156 public SeverityEnum getSeverity() { 157 return SeverityEnum.INFO; 158 } 159 } | Popular Tags |