Package com.linkedin.venice.exceptions
Enum Class ErrorType
- All Implemented Interfaces:
Serializable,Comparable<ErrorType>,Constable
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.
Each error type also carries the HTTP status code that should be returned when it surfaces in an HTTP response. This
lets VeniceException.getHttpStatusCode() derive the status code from the error type instead of every exception
subclass overriding the method, so new error types are handled consistently without missing the mapping.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
-
Enum Constant Details
-
INCORRECT_CONTROLLER
-
INVALID_SCHEMA
-
INVALID_CONFIG
-
STORE_NOT_FOUND
-
SCHEMA_NOT_FOUND
-
CONNECTION_ERROR
-
GENERAL_ERROR
-
BAD_REQUEST
-
CONCURRENT_BATCH_PUSH
-
RESOURCE_STILL_EXISTS
-
PROTOCOL_ERROR
-
ACL_ERROR
-
STORE_DISABLED
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getExceptionType
-
getHttpStatusCode
public int getHttpStatusCode()
-