KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > cjdbc > common > exceptions > NoMoreControllerException


1 /**
2  * C-JDBC: Clustered JDBC.
3  * Copyright (C) 2005 Emic Networks.
4  * Contact: c-jdbc@objectweb.org
5  *
6  * This library is free software; you can redistribute it and/or modify it
7  * under the terms of the GNU Lesser General Public License as published by the
8  * Free Software Foundation; either version 2.1 of the License, or any later
9  * version.
10  *
11  * This library is distributed in the hope that it will be useful, but WITHOUT
12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
14  * for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public License
17  * along with this library; if not, write to the Free Software Foundation,
18  * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
19  *
20  * Initial developer(s): Emmanuel Cecchet.
21  * Contributor(s): ______________________.
22  */

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

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

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

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

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

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