01: /**
02: * Sequoia: Database clustering technology.
03: * Copyright (C) 2005 Emic Networks.
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: import java.sql.SQLException;
23:
24: /**
25: * This class defines a NoMoreControllerException. This exception is thrown when
26: * all controllers in a Sequoia URL are unavailable.
27: *
28: * @author <a href="mailto:emmanuel.cecchet@emicnetworks.com">Emmanuel Cecchet
29: * </a>
30: * @version 1.0
31: */
32: public class NoMoreControllerException extends SQLException {
33: private static final long serialVersionUID = -1970216751572913552L;
34:
35: /**
36: * Creates a new <code>NoMoreControllerException</code> object
37: */
38: public NoMoreControllerException() {
39: super ();
40: }
41:
42: /**
43: * Creates a new <code>NoMoreControllerException</code> object
44: *
45: * @param reason the error message
46: */
47: public NoMoreControllerException(String reason) {
48: super (reason);
49: }
50:
51: /**
52: * Creates a new <code>NoMoreControllerException</code> object
53: *
54: * @param reason the error message
55: * @param sqlState the SQL state
56: */
57: public NoMoreControllerException(String reason, String sqlState) {
58: super (reason, sqlState);
59: }
60:
61: /**
62: * Creates a new <code>NoMoreControllerException</code> object
63: *
64: * @param reason the error message
65: * @param sqlState the SQL state
66: * @param vendorCode vendor specific code
67: */
68: public NoMoreControllerException(String reason, String sqlState,
69: int vendorCode) {
70: super(reason, sqlState, vendorCode);
71: }
72:
73: }
|