java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
stormpot.PoolException
- All Implemented Interfaces:
Serializable
The PoolException may be thrown by a pool implementation in a number of
circumstances:
- If claim is called and the pool needs to
allocatea new object, but the allocation fails by returningnullor throwing an exception. - Likewise if the
Reallocator.reallocate(Slot, Poolable)method returnnullor throw an exception. - If the
Slot.release(Poolable)method is misused, and the pool is able to detect this. - If the
expiration checkthrows an exception.
- Author:
- Chris Vest
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPoolException(String message) Construct a new PoolException with the given message.PoolException(String message, Throwable cause) Construct a new PoolException with the given message and cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
PoolException
Construct a new PoolException with the given message.- Parameters:
message- A description of the exception to be returned fromThrowable.getMessage().- See Also:
-
PoolException
Construct a new PoolException with the given message and cause.- Parameters:
message- A description for the exception to be returned formThrowable.getMessage().cause- The underlying cause of this exception, as to be shown in the stack trace, and available throughThrowable.getCause().- See Also:
-