Package ai.chalk.protos.chalk.common.v1
Enum Class ErrorCodeCategory
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<ErrorCodeCategory>,Constable
public enum ErrorCodeCategory
extends Enum<ErrorCodeCategory>
implements com.google.protobuf.ProtocolMessageEnum
Network errors are thrown outside your resolvers. For example, your request was unauthenticated, connection failed, or an error occurred within Chalk.Protobuf enum
chalk.common.v1.ErrorCodeCategory-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionField errors are raised while running a feature resolver for a particular field.-- DEFAULT VALUE --Request errors are raised before execution of your resolver code. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intField errors are raised while running a feature resolver for a particular field.static final int-- DEFAULT VALUE --static final intRequest errors are raised before execution of your resolver code. -
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorCodeCategoryforNumber(int value) static final com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<ErrorCodeCategory>static ErrorCodeCategoryvalueOf(int value) Deprecated.static ErrorCodeCategoryvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name.static ErrorCodeCategoryReturns the enum constant of this class with the specified name.static ErrorCodeCategory[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ERROR_CODE_CATEGORY_NETWORK_UNSPECIFIED
-- DEFAULT VALUE --
ERROR_CODE_CATEGORY_NETWORK_UNSPECIFIED = 0; -
ERROR_CODE_CATEGORY_REQUEST
Request errors are raised before execution of your resolver code. They may occur due to invalid feature names in the input or a request that cannot be satisfied by the resolvers you have defined.
ERROR_CODE_CATEGORY_REQUEST = 1; -
ERROR_CODE_CATEGORY_FIELD
Field errors are raised while running a feature resolver for a particular field. For this type of error, you'll find a feature and resolver attribute in the error type. When a feature resolver crashes, you will receive null value in the response. To differentiate from a resolver returning a null value and a failure in the resolver, you need to check the error schema.
ERROR_CODE_CATEGORY_FIELD = 2; -
UNRECOGNIZED
-
-
Field Details
-
ERROR_CODE_CATEGORY_NETWORK_UNSPECIFIED_VALUE
public static final int ERROR_CODE_CATEGORY_NETWORK_UNSPECIFIED_VALUE-- DEFAULT VALUE --
ERROR_CODE_CATEGORY_NETWORK_UNSPECIFIED = 0;- See Also:
-
ERROR_CODE_CATEGORY_REQUEST_VALUE
public static final int ERROR_CODE_CATEGORY_REQUEST_VALUERequest errors are raised before execution of your resolver code. They may occur due to invalid feature names in the input or a request that cannot be satisfied by the resolvers you have defined.
ERROR_CODE_CATEGORY_REQUEST = 1;- See Also:
-
ERROR_CODE_CATEGORY_FIELD_VALUE
public static final int ERROR_CODE_CATEGORY_FIELD_VALUEField errors are raised while running a feature resolver for a particular field. For this type of error, you'll find a feature and resolver attribute in the error type. When a feature resolver crashes, you will receive null value in the response. To differentiate from a resolver returning a null value and a failure in the resolver, you need to check the error schema.
ERROR_CODE_CATEGORY_FIELD = 2;- See Also:
-
-
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
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.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:
value- 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
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
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:
desc- 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
-