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 for a requested component exists
21 * but there is not a file which defines de digester rules which should be
22 * used to parse it
23 *
24 * @author Jorge Ferrer
25 * @version $Revision: 1.2 $
26 *
27 */
28 public class DigesterRulesNotFoundException extends ConfigurationException {
29
30 private String digesterRulesFileName;
31 public DigesterRulesNotFoundException(String componentName, String digesterRulesFileName) {
32 super(componentName);
33 this.digesterRulesFileName = digesterRulesFileName;
34 }
35
36 public String getDigesterRulesFileName() {
37 return digesterRulesFileName;
38 }
39
40 public String getMessage() {
41 return super.getMessage() + ". There should be a file named " +
42 digesterRulesFileName + " which should contain the digester rules " +
43 "for parsing the XML file";
44 }
45 }