Enum ErrorType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ErrorType>

    public enum ErrorType
    extends java.lang.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 Detail

      • 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 Detail

      • values

        public static ErrorType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ErrorType c : ErrorType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ErrorType valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null