Package com.linkedin.venice.exceptions
Enum ExceptionType
- java.lang.Object
-
- java.lang.Enum<ExceptionType>
-
- com.linkedin.venice.exceptions.ExceptionType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ExceptionType>
@Deprecated public enum ExceptionType extends java.lang.Enum<ExceptionType>
Deprecated.since v0.2.620 Previously, this enum didn't have the @JsonEnumDefaultValue annotation. This annotation helps Jackson deserialize arbitrary values to a default value instead of throwing an Exception. Without this annotation, the enum is essentially non-evolvable since there may be many clients that are already running older code. UseErrorType
instead.A list of exception types/causes that can be added to error responses for clients to programmatically react.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BAD_REQUEST
Deprecated.CONNECTION_ERROR
Deprecated.GENERAL_ERROR
Deprecated.INCORRECT_CONTROLLER
Deprecated.INVALID_CONFIG
Deprecated.INVALID_SCHEMA
Deprecated.SCHEMA_NOT_FOUND
Deprecated.STORE_NOT_FOUND
Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ExceptionType
valueOf(java.lang.String name)
Deprecated.Returns the enum constant of this type with the specified name.static ExceptionType[]
values()
Deprecated.Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INCORRECT_CONTROLLER
public static final ExceptionType INCORRECT_CONTROLLER
Deprecated.
-
INVALID_SCHEMA
public static final ExceptionType INVALID_SCHEMA
Deprecated.
-
INVALID_CONFIG
public static final ExceptionType INVALID_CONFIG
Deprecated.
-
STORE_NOT_FOUND
public static final ExceptionType STORE_NOT_FOUND
Deprecated.
-
SCHEMA_NOT_FOUND
public static final ExceptionType SCHEMA_NOT_FOUND
Deprecated.
-
CONNECTION_ERROR
public static final ExceptionType CONNECTION_ERROR
Deprecated.
-
GENERAL_ERROR
public static final ExceptionType GENERAL_ERROR
Deprecated.
-
BAD_REQUEST
public static final ExceptionType BAD_REQUEST
Deprecated.
-
-
Method Detail
-
values
public static ExceptionType[] values()
Deprecated.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 (ExceptionType c : ExceptionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ExceptionType valueOf(java.lang.String name)
Deprecated.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 namejava.lang.NullPointerException
- if the argument is null
-
-