KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > continuent > sequoia > common > exceptions > NoMoreControllerException


1 /**
2  * Sequoia: Database clustering technology.
3  * Copyright (C) 2005 Emic Networks.
4  * Contact: sequoia@continuent.org
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
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  */

21
22 package org.continuent.sequoia.common.exceptions;
23
24 import java.sql.SQLException JavaDoc;
25
26 /**
27  * This class defines a NoMoreControllerException. This exception is thrown when
28  * all controllers in a Sequoia URL are unavailable.
29  *
30  * @author <a HREF="mailto:emmanuel.cecchet@emicnetworks.com">Emmanuel Cecchet
31  * </a>
32  * @version 1.0
33  */

34 public class NoMoreControllerException extends SQLException JavaDoc
35 {
36   private static final long serialVersionUID = -1970216751572913552L;
37
38   /**
39    * Creates a new <code>NoMoreControllerException</code> object
40    */

41   public NoMoreControllerException()
42   {
43     super();
44   }
45
46   /**
47    * Creates a new <code>NoMoreControllerException</code> object
48    *
49    * @param reason the error message
50    */

51   public NoMoreControllerException(String JavaDoc reason)
52   {
53     super(reason);
54   }
55
56   /**
57    * Creates a new <code>NoMoreControllerException</code> object
58    *
59    * @param reason the error message
60    * @param sqlState the SQL state
61    */

62   public NoMoreControllerException(String JavaDoc reason, String JavaDoc sqlState)
63   {
64     super(reason, sqlState);
65   }
66
67   /**
68    * Creates a new <code>NoMoreControllerException</code> object
69    *
70    * @param reason the error message
71    * @param sqlState the SQL state
72    * @param vendorCode vendor specific code
73    */

74   public NoMoreControllerException(String JavaDoc reason, String JavaDoc sqlState,
75       int vendorCode)
76   {
77     super(reason, sqlState, vendorCode);
78   }
79
80 }
81
Popular Tags