01: package org.apache.ojb.broker;
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 java.sql.SQLException;
19:
20: /**
21: * Exception indicate an SQL key contraint violation.
22: *
23: * @author Matthew Baird
24: * @version $Id: KeyConstraintViolatedException.java,v 1.5.2.3 2005/12/22 21:15:36 tomdz Exp $
25: */
26: public class KeyConstraintViolatedException extends
27: PersistenceBrokerSQLException {
28: /**
29: * Creates a new exception instance.
30: */
31: public KeyConstraintViolatedException() {
32: super ();
33: }
34:
35: /**
36: * Creates a new exception instance.
37: *
38: * @param base The wrapped exception
39: */
40: public KeyConstraintViolatedException(SQLException base) {
41: super (base);
42: }
43:
44: /**
45: * Creates a new exception instance.
46: *
47: * @param msg The exception message
48: */
49: public KeyConstraintViolatedException(String msg) {
50: super (msg);
51: }
52:
53: /**
54: * Creates a new exception instance.
55: *
56: * @param msg The exception message
57: * @param base The wrapped exception
58: */
59: public KeyConstraintViolatedException(String msg, SQLException base) {
60: super(msg, base);
61: }
62: }
|