Enum Class SandboxException.ViolationType
java.lang.Object
java.lang.Enum<SandboxException.ViolationType>
cloud.opencode.base.expression.sandbox.SandboxException.ViolationType
- All Implemented Interfaces:
Serializable, Comparable<SandboxException.ViolationType>, Constable
- Enclosing class:
SandboxException
Violation Type Enum
违规类型枚举
- Since:
- JDK 25, opencode-base-expression 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 ConstantDescriptionClass access violation 类访问违规Evaluation depth exceeded 求值深度超出Expression too long 表达式过长Function call violation 函数调用违规Iteration limit exceeded 迭代限制超出Method call violation 方法调用违规Property access violation 属性访问违规Execution timeout 执行超时Unknown violation 未知违规 -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static SandboxException.ViolationType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CLASS_ACCESS
Class access violation 类访问违规 -
METHOD_CALL
Method call violation 方法调用违规 -
PROPERTY_ACCESS
Property access violation 属性访问违规 -
FUNCTION_CALL
Function call violation 函数调用违规 -
TIMEOUT
Execution timeout 执行超时 -
ITERATION_LIMIT
Iteration limit exceeded 迭代限制超出 -
EXPRESSION_LENGTH
Expression too long 表达式过长 -
DEPTH_LIMIT
Evaluation depth exceeded 求值深度超出 -
UNKNOWN
Unknown violation 未知违规
-
-
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
-