01: /**
02: * Sequoia: Database clustering technology.
03: * Copyright (C) 2002-2004 French National Institute For Research In Computer
04: * Science And Control (INRIA).
05: * Copyright (C) 2005 AmicoSoft, Inc. dba Emic Networks
06: * Contact: sequoia@continuent.org
07: *
08: * Licensed under the Apache License, Version 2.0 (the "License");
09: * you may not use this file except in compliance with the License.
10: * You may obtain a copy of the License at
11: *
12: * http://www.apache.org/licenses/LICENSE-2.0
13: *
14: * Unless required by applicable law or agreed to in writing, software
15: * distributed under the License is distributed on an "AS IS" BASIS,
16: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17: * See the License for the specific language governing permissions and
18: * limitations under the License.
19: *
20: * Initial developer(s): Emmanuel Cecchet.
21: * Contributor(s): ______________________________________.
22: */package org.continuent.sequoia.common.exceptions;
23:
24: import java.sql.SQLException;
25:
26: /**
27: * This exception is thrown for all non implemented features in the Sequoia
28: * driver.
29: *
30: * @author <a href="mailto:Emmanuel.Cecchet@inria.fr">Emmanuel Cecchet</a>
31: * @version 1.0
32: */
33: public class NotImplementedException extends SQLException {
34: private static final long serialVersionUID = 6615147787748938642L;
35:
36: /**
37: * Creates a new <code>NotImplementedException</code> instance.
38: *
39: * @param reason the exception cause
40: * @param sqlState the SQL state
41: * @param vendorCode the vendor code
42: */
43: public NotImplementedException(String reason, String sqlState,
44: int vendorCode) {
45: super (reason, sqlState, vendorCode);
46: }
47:
48: /**
49: * Creates a new <code>NotImplementedException</code> instance.
50: *
51: * @param reason the exception cause
52: * @param sqlState the SQL state
53: */
54: public NotImplementedException(String reason, String sqlState) {
55: super (reason, sqlState);
56: }
57:
58: /**
59: * Creates a new <code>NotImplementedException</code> instance.
60: *
61: * @param callingMethod the calling method that failed
62: */
63: public NotImplementedException(String callingMethod) {
64: super (callingMethod + " not implemented");
65: }
66:
67: /**
68: * Creates a new <code>NotImplementedException</code> instance.
69: */
70: public NotImplementedException() {
71: super ("Feature not implemented");
72: }
73: }
|