- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- stormpot.PoolException
-
- All Implemented Interfaces:
java.io.Serializable
public class PoolException extends java.lang.RuntimeExceptionThe 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 <mr.chrisvest@gmail.com>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PoolException(java.lang.String message)Construct a new PoolException with the given message.PoolException(java.lang.String message, java.lang.Throwable cause)Construct a new PoolException with the given message and cause.
-
-
-
Constructor Detail
-
PoolException
public PoolException(java.lang.String message)
Construct a new PoolException with the given message.
- Parameters:
message- A description of the exception to be returned fromThrowable.getMessage().- See Also:
RuntimeException(String)
-
PoolException
public PoolException(java.lang.String message, java.lang.Throwable cause)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:
RuntimeException(String, Throwable)
-
-