Enum Class ErrorCodeCategory

java.lang.Object
java.lang.Enum<ErrorCodeCategory>
ai.chalk.models.ErrorCodeCategory
All Implemented Interfaces:
Serializable, Comparable<ErrorCodeCategory>, Constable

public enum ErrorCodeCategory extends Enum<ErrorCodeCategory>
  • Enum Constant Details

    • REQUEST

      public static final ErrorCodeCategory REQUEST
      Request errors are raised before the 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.
    • FIELD

      public static final ErrorCodeCategory 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 a 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.
    • NETWORK

      public static final ErrorCodeCategory NETWORK
      Network errors are thrown outside your resolvers. For example, your request was unauthenticated, connection failed, or an error occurred within Chalk.
  • 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
    • getValue

      public String getValue()