KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > ojb > jdori > sql > OjbStoreFatalInternalException


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

16
17 import javax.jdo.JDOFatalInternalException;
18
19 /**
20 * This is exception indicates internal errors
21 *
22 * @author Thomas Mahler
23 */

24 public class OjbStoreFatalInternalException extends JDOFatalInternalException
25 {
26     /**
27      * @param className class in which the exception is thrown.
28      * @param methodName method throwing the exception.
29      */

30     OjbStoreFatalInternalException(Class JavaDoc clazz, String JavaDoc methodName, String JavaDoc msg)
31     {
32         super(clazz.getName() + "." + methodName + ": " + msg);
33     }
34
35     /**
36      * @param className class in which the exception is thrown.
37      * @param methodName method throwing the exception.
38      * @param nested nested Exception
39      */

40     OjbStoreFatalInternalException(Class JavaDoc clazz, String JavaDoc methodName, Exception JavaDoc nested)
41     {
42         super(clazz.getName() + "." + methodName, new Exception JavaDoc[] { nested });
43     }
44
45     /**
46      * @param className class in which the exception is thrown.
47      * @param methodName method throwing the exception.
48      * @param msg the error message
49      * @param nested nested Exception
50      */

51     OjbStoreFatalInternalException(Class JavaDoc clazz, String JavaDoc methodName, String JavaDoc msg, Exception JavaDoc nested)
52     {
53         super(clazz.getName() + "." + methodName + ": " + msg, new Exception JavaDoc[] { nested });
54     }
55 }
56
Popular Tags