Package org.apache.tomcat.jdbc.pool
Class PoolExhaustedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.sql.SQLException
-
- org.apache.tomcat.jdbc.pool.PoolExhaustedException
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Iterable<java.lang.Throwable>
public class PoolExhaustedException extends java.sql.SQLExceptionException thrown when the connection pool is exhausted and no connections are available.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PoolExhaustedException()Constructs a PoolExhaustedException with no detail message.PoolExhaustedException(java.lang.String reason)Constructs a PoolExhaustedException with the specified detail message.PoolExhaustedException(java.lang.String reason, java.lang.String SQLState)Constructs a PoolExhaustedException with the specified detail message and SQL state.PoolExhaustedException(java.lang.String reason, java.lang.String SQLState, int vendorCode)Constructs a PoolExhaustedException with the specified detail message, SQL state, and vendor code.PoolExhaustedException(java.lang.String reason, java.lang.String sqlState, int vendorCode, java.lang.Throwable cause)Constructs a PoolExhaustedException with the specified detail message, SQL state, vendor code, and cause.PoolExhaustedException(java.lang.String reason, java.lang.String sqlState, java.lang.Throwable cause)Constructs a PoolExhaustedException with the specified detail message, SQL state, and cause.PoolExhaustedException(java.lang.String reason, java.lang.Throwable cause)Constructs a PoolExhaustedException with the specified detail message and cause.PoolExhaustedException(java.lang.Throwable cause)Constructs a PoolExhaustedException with the specified cause.
-
Method Summary
-
Methods inherited from class java.sql.SQLException
getErrorCode, getNextException, getSQLState, iterator, setNextException
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
PoolExhaustedException
public PoolExhaustedException()
Constructs a PoolExhaustedException with no detail message.
-
PoolExhaustedException
public PoolExhaustedException(java.lang.String reason)
Constructs a PoolExhaustedException with the specified detail message.- Parameters:
reason- the detail message
-
PoolExhaustedException
public PoolExhaustedException(java.lang.Throwable cause)
Constructs a PoolExhaustedException with the specified cause.- Parameters:
cause- the cause of this exception
-
PoolExhaustedException
public PoolExhaustedException(java.lang.String reason, java.lang.String SQLState)Constructs a PoolExhaustedException with the specified detail message and SQL state.- Parameters:
reason- the detail messageSQLState- the SQL state code
-
PoolExhaustedException
public PoolExhaustedException(java.lang.String reason, java.lang.Throwable cause)Constructs a PoolExhaustedException with the specified detail message and cause.- Parameters:
reason- the detail messagecause- the cause of this exception
-
PoolExhaustedException
public PoolExhaustedException(java.lang.String reason, java.lang.String SQLState, int vendorCode)Constructs a PoolExhaustedException with the specified detail message, SQL state, and vendor code.- Parameters:
reason- the detail messageSQLState- the SQL state codevendorCode- the vendor-specific error code
-
PoolExhaustedException
public PoolExhaustedException(java.lang.String reason, java.lang.String sqlState, java.lang.Throwable cause)Constructs a PoolExhaustedException with the specified detail message, SQL state, and cause.- Parameters:
reason- the detail messagesqlState- the SQL state codecause- the cause of this exception
-
PoolExhaustedException
public PoolExhaustedException(java.lang.String reason, java.lang.String sqlState, int vendorCode, java.lang.Throwable cause)Constructs a PoolExhaustedException with the specified detail message, SQL state, vendor code, and cause.- Parameters:
reason- the detail messagesqlState- the SQL state codevendorCode- the vendor-specific error codecause- the cause of this exception
-
-