Package ai.chalk.models
Enum Class ErrorCode
- All Implemented Interfaces:
Serializable,Comparable<ErrorCode>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates the operation was cancelled, typically by the caller.Indicates the deadline expired before the operation could complete.Indicates an unspecified error occurred.Indicates the query is invalid.Indicates the query request contained missing or malformed attributes.Indicates the resolver for a feature errored.Indicates a resolver that was required as part of running the dependency graph could not be found.Indicates the resolver for a feature timed out.Indicates the request was submitted with an invalid authentication header.Indicates the supplied credentials do not provide the right authorization to execute the request.Indicates a crash in a resolver that was to produce an input for the resolver crashed, and so the resolver could not run.Indicates a feature value did not match the expected schema (e.g. -
Method Summary
-
Enum Constant Details
-
PARSE_FAILED
Indicates the query request contained missing or malformed attributes. -
RESOLVER_NOT_FOUND
Indicates a resolver that was required as part of running the dependency graph could not be found. -
INVALID_QUERY
Indicates the query is invalid. -
VALIDATION_FAILED
Indicates a feature value did not match the expected schema (e.g. `incompatible type "int"; expected "str"`). -
RESOLVER_FAILED
Indicates the resolver for a feature errored. -
RESOLVER_TIMED_OUT
Indicates the resolver for a feature timed out. -
UPSTREAM_FAILED
Indicates a crash in a resolver that was to produce an input for the resolver crashed, and so the resolver could not run. -
UNAUTHENTICATED
Indicates the request was submitted with an invalid authentication header. -
UNAUTHORIZED
Indicates the supplied credentials do not provide the right authorization to execute the request. -
INTERNAL_SERVER_ERROR
Indicates an unspecified error occurred. -
CANCELLED
Indicates the operation was cancelled, typically by the caller. -
DEADLINE_EXCEEDED
Indicates the deadline expired before the operation could complete.
-
-
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
-
getValue
-