KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > quartz > JobPersistenceException


1
2 /*
3  * Copyright 2004-2005 OpenSymphony
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6  * use this file except in compliance with the License. You may obtain a copy
7  * of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14  * License for the specific language governing permissions and limitations
15  * under the License.
16  *
17  */

18
19 /*
20  * Previously Copyright (c) 2001-2004 James House
21  */

22 package org.quartz;
23
24 /**
25  * <p>
26  * An exception that is thrown to indicate that there has been a failure in the
27  * scheduler's underlying persistence mechanism.
28  * </p>
29  *
30  * @author James House
31  */

32 public class JobPersistenceException 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 JobPersistenceException(String JavaDoc msg) {
48         super(msg);
49         setErrorCode(ERR_PERSISTENCE);
50     }
51
52     /**
53      * <p>
54      * Create a <code>JobPersistenceException</code> with the given message
55      * and error code.
56      * </p>
57      */

58     public JobPersistenceException(String JavaDoc msg, int errCode) {
59         super(msg, errCode);
60     }
61
62     /**
63      * <p>
64      * Create a <code>JobPersistenceException</code> with the given message
65      * and cause.
66      * </p>
67      */

68     public JobPersistenceException(String JavaDoc msg, Throwable JavaDoc cause) {
69         super(msg, cause);
70         setErrorCode(ERR_PERSISTENCE);
71     }
72
73     /**
74      * <p>
75      * Create a <code>JobPersistenceException</code> with the given message,
76      * cause and error code.
77      * </p>
78      */

79     public JobPersistenceException(String JavaDoc msg, Throwable JavaDoc cause, int errorCode) {
80         super(msg, cause, errorCode);
81     }
82
83 }
84
Popular Tags