Enum Class ErrorCode

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

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

    • PARSE_FAILED

      public static final ErrorCode PARSE_FAILED
      Indicates the query request contained missing or malformed attributes.
    • RESOLVER_NOT_FOUND

      public static final ErrorCode RESOLVER_NOT_FOUND
      Indicates a resolver that was required as part of running the dependency graph could not be found.
    • INVALID_QUERY

      public static final ErrorCode INVALID_QUERY
      Indicates the query is invalid.
    • VALIDATION_FAILED

      public static final ErrorCode VALIDATION_FAILED
      Indicates a feature value did not match the expected schema (e.g. `incompatible type "int"; expected "str"`).
    • RESOLVER_FAILED

      public static final ErrorCode RESOLVER_FAILED
      Indicates the resolver for a feature errored.
    • RESOLVER_TIMED_OUT

      public static final ErrorCode RESOLVER_TIMED_OUT
      Indicates the resolver for a feature timed out.
    • UPSTREAM_FAILED

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

      public static final ErrorCode UNAUTHENTICATED
      Indicates the request was submitted with an invalid authentication header.
    • UNAUTHORIZED

      public static final ErrorCode UNAUTHORIZED
      Indicates the supplied credentials do not provide the right authorization to execute the request.
    • INTERNAL_SERVER_ERROR

      public static final ErrorCode INTERNAL_SERVER_ERROR
      Indicates an unspecified error occurred.
    • CANCELLED

      public static final ErrorCode CANCELLED
      Indicates the operation was cancelled, typically by the caller.
    • DEADLINE_EXCEEDED

      public static final ErrorCode DEADLINE_EXCEEDED
      Indicates the deadline expired before the operation could complete.
  • Method Details

    • values

      public static ErrorCode[] 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 ErrorCode 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()