Enum Class Error

java.lang.Object
java.lang.Enum<Error>
com.yahoo.container.protect.Error
All Implemented Interfaces:
Serializable, Comparable<Error>, Constable

public enum Error extends Enum<Error>
Error codes to use in ErrorMessage instances for container applications.
Author:
Steinar Knutsen
  • Enum Constant Details

    • NO_BACKENDS_IN_SERVICE

      public static final Error NO_BACKENDS_IN_SERVICE
    • NULL_QUERY

      public static final Error NULL_QUERY
    • REQUEST_TOO_LARGE

      public static final Error REQUEST_TOO_LARGE
    • ILLEGAL_QUERY

      public static final Error ILLEGAL_QUERY
    • INVALID_QUERY_PARAMETER

      public static final Error INVALID_QUERY_PARAMETER
    • UNSPECIFIED

      public static final Error UNSPECIFIED
    • ERROR_IN_PLUGIN

      public static final Error ERROR_IN_PLUGIN
    • INVALID_QUERY_TRANSFORMATION

      public static final Error INVALID_QUERY_TRANSFORMATION
    • RESULT_HAS_ERRORS

      public static final Error RESULT_HAS_ERRORS
    • SERVER_IS_MISCONFIGURED

      public static final Error SERVER_IS_MISCONFIGURED
    • BACKEND_COMMUNICATION_ERROR

      public static final Error BACKEND_COMMUNICATION_ERROR
    • NO_ANSWER_WHEN_PINGING_NODE

      public static final Error NO_ANSWER_WHEN_PINGING_NODE
    • TIMEOUT

      public static final Error TIMEOUT
    • EMPTY_DOCUMENTS

      public static final Error EMPTY_DOCUMENTS
    • UNAUTHORIZED

      public static final Error UNAUTHORIZED
    • FORBIDDEN

      public static final Error FORBIDDEN
    • NOT_FOUND

      public static final Error NOT_FOUND
    • BAD_REQUEST

      public static final Error BAD_REQUEST
    • INTERNAL_SERVER_ERROR

      public static final Error INTERNAL_SERVER_ERROR
    • INSUFFICIENT_STORAGE

      public static final Error INSUFFICIENT_STORAGE
  • Field Details

    • code

      public final int code
  • Method Details

    • values

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