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: DatasourceNotFoundException.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.database.exceptions;
09:
10: public class DatasourceNotFoundException extends DatasourcesException {
11: private static final long serialVersionUID = 5512935424104175110L;
12:
13: private String mDatasource = null;
14: private String mXmlPath = null;
15:
16: public DatasourceNotFoundException(String dataSource) {
17: super ("Couldn't find a valid resource for the datasource '"
18: + dataSource + "'.");
19:
20: mDatasource = dataSource;
21: }
22:
23: public DatasourceNotFoundException(String dataSource, String xmlPath) {
24: super ("Couldn't find a valid resource for the datasource '"
25: + dataSource + "', tried xml path '" + xmlPath + "'.");
26:
27: mDatasource = dataSource;
28: mXmlPath = xmlPath;
29: }
30:
31: public String getDatasource() {
32: return mDatasource;
33: }
34:
35: public String getXmlPath() {
36: return mXmlPath;
37: }
38: }
|