01: package org.apache.ojb.jdori.sql;
02:
03: /* Copyright 2002-2005 The Apache Software Foundation
04: *
05: * Licensed under the Apache License, Version 2.0 (the "License");
06: * you may not use this file except in compliance with the License.
07: * You may obtain a copy of the License at
08: *
09: * 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,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17:
18: import javax.jdo.JDOFatalInternalException;
19:
20: /**
21: * This is exception indicates internal errors
22: *
23: * @author Thomas Mahler
24: */
25: public class OjbStoreFatalInternalException extends
26: JDOFatalInternalException {
27: /**
28: * @param className class in which the exception is thrown.
29: * @param methodName method throwing the exception.
30: */
31: OjbStoreFatalInternalException(Class clazz, String methodName,
32: String msg) {
33: super (clazz.getName() + "." + methodName + ": " + msg);
34: }
35:
36: /**
37: * @param className class in which the exception is thrown.
38: * @param methodName method throwing the exception.
39: * @param nested nested Exception
40: */
41: OjbStoreFatalInternalException(Class clazz, String methodName,
42: Exception nested) {
43: super (clazz.getName() + "." + methodName,
44: new Exception[] { nested });
45: }
46:
47: /**
48: * @param className class in which the exception is thrown.
49: * @param methodName method throwing the exception.
50: * @param msg the error message
51: * @param nested nested Exception
52: */
53: OjbStoreFatalInternalException(Class clazz, String methodName,
54: String msg, Exception nested) {
55: super (clazz.getName() + "." + methodName + ": " + msg,
56: new Exception[] { nested });
57: }
58: }
|