Package org.apache.commons.dbcp2
Class LifetimeExceededException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.sql.SQLException
org.apache.commons.dbcp2.LifetimeExceededException
- All Implemented Interfaces:
Serializable,Iterable<Throwable>
Exception thrown when a connection's maximum lifetime has been exceeded.
- Since:
- 2.1
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new instance.LifetimeExceededException(String reason) Constructs a new instance with the given message. -
Method Summary
Methods inherited from class java.sql.SQLException
getErrorCode, getNextException, getSQLState, iterator, setNextExceptionMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
LifetimeExceededException
public LifetimeExceededException()Constructs a new instance. -
LifetimeExceededException
Constructs a new instance with the given message.- Parameters:
reason- a description of the exception
-