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:
22: package org.quartz;
23:
24: /**
25: * <p>
26: * An exception that is thrown to indicate that there has been a critical
27: * failure within the scheduler's core services (such as loss of database
28: * connectivity).
29: * </p>
30: *
31: * @author James House
32: */
33: public class CriticalSchedulerException extends SchedulerException {
34:
35: /*
36: * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37: *
38: * Constructors.
39: *
40: * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
41: */
42:
43: /**
44: * <p>
45: * Create a <code>CriticalSchedulerException</code> with the given message.
46: * </p>
47: */
48: public CriticalSchedulerException(String msg, int errCode) {
49: super(msg);
50: setErrorCode(errCode);
51: }
52: }
|