01: /*
02: * Copyright 2001-2007 Geert Bevin <gbevin[remove] at uwyn dot com>
03: * Distributed under the terms of either:
04: * - the common development and distribution license (CDDL), v1.0; or
05: * - the GNU Lesser General Public License, v2.1 or later
06: * $Id: ConfigsourceNotFoundException.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.config.exceptions;
09:
10: public class ConfigsourceNotFoundException extends ConfigErrorException {
11: private static final long serialVersionUID = 4477782139859668000L;
12:
13: private String mConfigSource = null;
14: private String mXmlPath = null;
15:
16: public ConfigsourceNotFoundException(String configSource) {
17: super ("Couldn't find a valid resource for config source '"
18: + configSource + "'.");
19:
20: mConfigSource = configSource;
21: }
22:
23: public ConfigsourceNotFoundException(String configSource,
24: String xmlPath) {
25: super ("Couldn't find a valid resource for config source '"
26: + configSource + "', tried xml path '" + xmlPath + "'.");
27:
28: mConfigSource = configSource;
29: mXmlPath = xmlPath;
30: }
31:
32: public String getConfigSource() {
33: return mConfigSource;
34: }
35:
36: public String getXmlPath() {
37: return mXmlPath;
38: }
39: }
|