01: /*
02: * Geotools2 - OpenSource mapping toolkit
03: * http://geotools.org
04: * (C) 2002-2006, Geotools Project Managment Committee (PMC)
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation;
09: * version 2.1 of the License.
10: *
11: * This library is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * Lesser General Public License for more details.
15: *
16: */
17: package org.geotools.arcsde.pool;
18:
19: import java.io.IOException;
20:
21: /**
22: * Exception thrown when a free SDE connection can't be obtained after the
23: * calling thread was waiting an available connection for
24: * <code>SdeConnectionPool instance's getMaxWaitTime()</code> milliseconds
25: *
26: * @author Gabriel Roldan
27: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/unsupported/arcsde/datastore/src/main/java/org/geotools/arcsde/pool/UnavailableArcSDEConnectionException.java $
28: * @version $Id: UnavailableArcSDEConnectionException.java 25913 2007-06-19 15:54:38Z groldan $
29: */
30: public class UnavailableArcSDEConnectionException extends IOException {
31: /**
32: * Creates a new UnavailableArcSDEConnectionException object.
33: *
34: * @param usedConnections
35: * DOCUMENT ME!
36: * @param config
37: * DOCUMENT ME!
38: */
39: public UnavailableArcSDEConnectionException(int usedConnections,
40: ArcSDEConnectionConfig config) {
41: super ("The maximun of " + usedConnections + " to "
42: + config.toString() + " has been reached");
43: }
44: }
|