01: package org.apache.turbine.util.hibernate;
02:
03: /*
04: * Copyright 2001-2004 The Apache Software Foundation.
05: *
06: * Licensed under the Apache License, Version 2.0 (the "License")
07: * you may not use this file except in compliance with the License.
08: * You may obtain a copy of the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing, software
13: * distributed under the License is distributed on an "AS IS" BASIS,
14: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15: * See the License for the specific language governing permissions and
16: * limitations under the License.
17: */
18:
19: import org.apache.commons.lang.exception.NestableException;
20:
21: /**
22: * A general PersistenceException that can be thrown by
23: * Hibernate DAO classes.
24: *
25: * @version $Id: PersistenceException.java 221820 2004-02-27 05:12:43Z seade $
26: */
27: public class PersistenceException extends NestableException {
28: //~ Constructors ===========================================================
29:
30: /**
31: * Constructor for PersistenceException.
32: */
33: public PersistenceException() {
34: super ();
35: }
36:
37: /**
38: * Constructor for PersistenceException.
39: *
40: * @param message
41: */
42: public PersistenceException(String message) {
43: super (message);
44: }
45:
46: /**
47: * Constructor for PersistenceException.
48: *
49: * @param message
50: * @param cause
51: */
52: public PersistenceException(String message, Throwable cause) {
53: super (message, cause);
54: }
55:
56: /**
57: * Constructor for PersistenceException.
58: *
59: * @param cause
60: */
61: public PersistenceException(Throwable cause) {
62: super(cause);
63: }
64:
65: }
|