Enum AIResponseErrorType
- All Implemented Interfaces:
ValueEnum
,Serializable
,Comparable<AIResponseErrorType>
,Constable
AIResponse
of type
ERROR, the type of error, if known.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionthe request exceeds a rate limitthe request's size exceeds a limitthe request was deemed unsafethe response's size exceeded a limitthe generated response was deemed unsafe -
Method Summary
Modifier and TypeMethodDescriptiongetValue()
static AIResponseErrorType
Returns the enum constant of this type with the specified name.static AIResponseErrorType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
REQUESTRATELIMITEXCEEDED
the request exceeds a rate limitIf this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "requestRateLimitExceeded". -
REQUESTSIZELIMITEXCEEDED
the request's size exceeds a limitIf this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "requestSizeLimitExceeded". -
REQUESTUNSAFE
the request was deemed unsafeIf this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "requestUnsafe". -
RESPONSESIZELIMITEXCEEDED
the response's size exceeded a limitIf this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "responseSizeLimitExceeded". -
RESPONSEUNSAFE
the generated response was deemed unsafeIf this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "responseUnsafe".
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
-