Enum Class OpenPoolException.PoolErrorType
java.lang.Object
java.lang.Enum<OpenPoolException.PoolErrorType>
cloud.opencode.base.pool.exception.OpenPoolException.PoolErrorType
- All Implemented Interfaces:
Serializable, Comparable<OpenPoolException.PoolErrorType>, Constable
- Enclosing class:
OpenPoolException
Pool error type enumeration.
池错误类型枚举。
- Since:
- JDK 25, opencode-base-pool V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionObject activation failed - 激活对象失败Pool closed - 池已关闭Object creation failed - 创建对象失败Object destruction failed - 销毁对象失败Pool exhausted - 池耗尽General error - 一般错误Invalid state - 非法状态Object passivation failed - 钝化对象失败Timeout waiting - 超时Validation failed - 验证失败 -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static OpenPoolException.PoolErrorType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GENERAL
General error - 一般错误 -
EXHAUSTED
Pool exhausted - 池耗尽 -
TIMEOUT
Timeout waiting - 超时 -
VALIDATION
Validation failed - 验证失败 -
CLOSED
Pool closed - 池已关闭 -
CREATE
Object creation failed - 创建对象失败 -
DESTROY
Object destruction failed - 销毁对象失败 -
ACTIVATE
Object activation failed - 激活对象失败 -
PASSIVATE
Object passivation failed - 钝化对象失败 -
INVALID_STATE
Invalid state - 非法状态
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-