View Javadoc

1   /*
2    * Copyright 2004-2005 Germinus XXI
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License")
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *     http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
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  }