01: /*
02: * Copyright 2004-2005 OpenSymphony
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License"); you may not
05: * use this file except in compliance with the License. You may obtain a copy
06: * of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12: * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13: * License for the specific language governing permissions and limitations
14: * under the License.
15: *
16: */
17:
18: /*
19: * Previously Copyright (c) 2001-2004 James House
20: */
21: package org.quartz;
22:
23: /**
24: * <p>
25: * An exception that is thrown to indicate that there is a misconfiguration of
26: * the <code>SchedulerFactory</code>- or one of the components it
27: * configures.
28: * </p>
29: *
30: * @author James House
31: */
32: public class SchedulerConfigException extends SchedulerException {
33:
34: /*
35: * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
36: *
37: * Constructors.
38: *
39: * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
40: */
41:
42: /**
43: * <p>
44: * Create a <code>JobPersistenceException</code> with the given message.
45: * </p>
46: */
47: public SchedulerConfigException(String msg) {
48: super (msg, ERR_BAD_CONFIGURATION);
49: }
50:
51: /**
52: * <p>
53: * Create a <code>JobPersistenceException</code> with the given message
54: * and cause.
55: * </p>
56: */
57: public SchedulerConfigException(String msg, Throwable cause) {
58: super(msg, cause);
59: setErrorCode(ERR_BAD_CONFIGURATION);
60: }
61:
62: }
|