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