Top Description Fields Constructors
stormpot

public Class PoolException

extends RuntimeException
Class Inheritance

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.
Author
Chris Vest

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
PoolException(String
A description of the exception to be returned from getMessage().
message
)

Construct a new PoolException with the given message.

public
PoolException(String
A description for the exception to be returned form getMessage().
message
,
Throwable
The underlying cause of this exception, as to be shown in the stack trace, and available through getCause().
cause
)

Construct a new PoolException with the given message and cause.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.RuntimeException.serialVersionUID.

Constructor Detail

PoolExceptionback to summary
public PoolException(String message)

Construct a new PoolException with the given message.

Parameters
message:String

A description of the exception to be returned from getMessage().

See Also
RuntimeException#RuntimeException(String)
PoolExceptionback to summary
public PoolException(String message, Throwable cause)

Construct a new PoolException with the given message and cause.

Parameters
message:String

A description for the exception to be returned form getMessage().

cause:Throwable

The underlying cause of this exception, as to be shown in the stack trace, and available through getCause().

See Also
RuntimeException#RuntimeException(String, Throwable)