01: /**
02: * Sequoia: Database clustering technology.
03: * Copyright (C) 2005 Continuent Inc.
04: * Contact: sequoia@continuent.org
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: * Initial developer(s): Emmanuel Cecchet.
19: * Contributor(s): ______________________.
20: */package org.continuent.sequoia.common.exceptions;
21:
22: /**
23: * A <code>BadJDBCApiUsageException</code> is thrown when a client does an
24: * inappropriate usage of the JDBC API. For example calling executeQuery() for a
25: * query that returns an update count.
26: *
27: * @author <a href="mailto:emmanuel.cecchet@continuent.com">Emmanuel Cecchet
28: * </a>
29: * @version 1.0
30: */
31: public class BadJDBCApiUsageException extends SequoiaException {
32: private static final long serialVersionUID = 1325042260073279124L;
33:
34: /**
35: * Creates a new <code>BadJDBCApiUsageException</code> instance.
36: *
37: * @param cause the root cause
38: */
39: public BadJDBCApiUsageException(Throwable cause) {
40: super (cause);
41: }
42:
43: /**
44: * Creates a new <code>BadJDBCApiUsageException</code> object
45: *
46: * @param message the error message
47: */
48: public BadJDBCApiUsageException(String message) {
49: super (message);
50: }
51:
52: /**
53: * Creates a new <code>BadJDBCApiUsageException</code> instance.
54: *
55: * @param message the error message
56: * @param cause the root cause
57: */
58: public BadJDBCApiUsageException(String message, Throwable cause) {
59: super(message, cause);
60: }
61:
62: }
|