1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package com.germinus.easyconf;
17
18
19 /***
20 * Thrown when an XML configuration file contains a variable which either
21 * is not of the form <code>${variableName}</code> or is not
22 * defined in any of the properties files associated with its component
23 *
24 * @author Jorge Ferrer
25 * @version $Revision: 1.2 $
26 *
27 */
28 public class InvalidPropertyException extends ConfigurationException {
29
30 public InvalidPropertyException(String componentName, Throwable e) {
31 super(componentName, e);
32 }
33
34 public String getMessage() {
35 return super.getMessage() + ". A variable is either malformed or " +
36 "makes a reference to " +
37 "a property which is not defined for this component in " +
38 "any of its configuration files.";
39 }
40 }