Enum Class ErrorType

java.lang.Object
java.lang.Enum<ErrorType>
com.linkedin.venice.exceptions.ErrorType
All Implemented Interfaces:
Serializable, Comparable<ErrorType>, Constable

public enum ErrorType extends Enum<ErrorType>
ExceptionType enum did not have a default deserialization annotation and this makes it non-evolvable till all clients upgrade to newer versions. This temporary enum is created to have an evolvable ExceptionType while mapping new types to previously existing ExceptionTypes.
  • Enum Constant Details

    • INCORRECT_CONTROLLER

      public static final ErrorType INCORRECT_CONTROLLER
    • INVALID_SCHEMA

      public static final ErrorType INVALID_SCHEMA
    • INVALID_CONFIG

      public static final ErrorType INVALID_CONFIG
    • STORE_NOT_FOUND

      public static final ErrorType STORE_NOT_FOUND
    • SCHEMA_NOT_FOUND

      public static final ErrorType SCHEMA_NOT_FOUND
    • CONNECTION_ERROR

      public static final ErrorType CONNECTION_ERROR
    • GENERAL_ERROR

      public static final ErrorType GENERAL_ERROR
    • BAD_REQUEST

      public static final ErrorType BAD_REQUEST
    • CONCURRENT_BATCH_PUSH

      public static final ErrorType CONCURRENT_BATCH_PUSH
    • RESOURCE_STILL_EXISTS

      public static final ErrorType RESOURCE_STILL_EXISTS
  • Method Details

    • values

      public static ErrorType[] 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 ErrorType 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
    • getExceptionType

      public ExceptionType getExceptionType()