public class PoolException extends RuntimeException
The PoolException may be thrown by a pool implementation in a number of circumstances:
If claim is called and the pool needs to
allocate a new object, but the allocation
fails by returning null or throwing an exception.
Likewise if the Reallocator.reallocate(Slot, Poolable) method
return null or throw an exception.
If the Slot.release(Poolable) method is misused, and the pool is
able to detect this.
If the expiration check throws an
exception.
| Constructor and Description |
|---|
PoolException(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.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic PoolException(String message)
Construct a new PoolException with the given message.
message - A description of the exception to be returned from
Throwable.getMessage().RuntimeException.RuntimeException(String)public PoolException(String message, Throwable cause)
Construct a new PoolException with the given message and cause.
message - A description for the exception to be returned form
Throwable.getMessage().cause - The underlying cause of this exception, as to be shown in the
stack trace, and available through Throwable.getCause().RuntimeException.RuntimeException(String, Throwable)Copyright © 2011-2014–2016. All rights reserved.