Enum Class ErrorCodeCategory

java.lang.Object
java.lang.Enum<ErrorCodeCategory>
ai.chalk.protos.chalk.common.v1.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
  • Enum Constant Details

    • ERROR_CODE_CATEGORY_NETWORK_UNSPECIFIED

      public static final ErrorCodeCategory ERROR_CODE_CATEGORY_NETWORK_UNSPECIFIED
       -- DEFAULT VALUE --
       
      ERROR_CODE_CATEGORY_NETWORK_UNSPECIFIED = 0;
    • ERROR_CODE_CATEGORY_REQUEST

      public static final ErrorCodeCategory 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

      public static final ErrorCodeCategory 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

      public static final ErrorCodeCategory 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_VALUE
      
      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;
      See Also:
    • ERROR_CODE_CATEGORY_FIELD_VALUE

      public static final int ERROR_CODE_CATEGORY_FIELD_VALUE
      
      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;
      See Also:
  • Method Details

    • values

      public static ErrorCodeCategory[] 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

      public static ErrorCodeCategory valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static ErrorCodeCategory valueOf(int value)
      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 name
      NullPointerException - if the argument is null
    • forNumber

      public static ErrorCodeCategory forNumber(int value)
      Parameters:
      value - The numeric wire value of the corresponding enum entry.
      Returns:
      The enum associated with the given numeric wire value.
    • internalGetValueMap

      public static com.google.protobuf.Internal.EnumLiteMap<ErrorCodeCategory> internalGetValueMap()
    • getValueDescriptor

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
      Specified by:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptor

      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static ErrorCodeCategory valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
      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 name
      NullPointerException - if the argument is null