Enum RegistryExceptions.Type
- java.lang.Object
-
- java.lang.Enum<RegistryExceptions.Type>
-
- io.pravega.schemaregistry.client.exceptions.RegistryExceptions.Type
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<RegistryExceptions.Type>
- Enclosing class:
- RegistryExceptions
public static enum RegistryExceptions.Type extends java.lang.Enum<RegistryExceptions.Type>
Enum to describe the type of exception.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BAD_ARGUMENTCODEC_NOT_FOUNDCONNECTION_ERRORINCOMPATIBLE_SCHEMAINTERNAL_SERVER_ERRORMALFORMED_SCHEMAPRECONDITION_FAILEDRESOURCE_NOT_FOUNDSERIALIZATION_FORMAT_MISMATCHUNAUTHORIZED
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RegistryExceptions.TypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static RegistryExceptions.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNAUTHORIZED
public static final RegistryExceptions.Type UNAUTHORIZED
-
BAD_ARGUMENT
public static final RegistryExceptions.Type BAD_ARGUMENT
-
PRECONDITION_FAILED
public static final RegistryExceptions.Type PRECONDITION_FAILED
-
CODEC_NOT_FOUND
public static final RegistryExceptions.Type CODEC_NOT_FOUND
-
MALFORMED_SCHEMA
public static final RegistryExceptions.Type MALFORMED_SCHEMA
-
INCOMPATIBLE_SCHEMA
public static final RegistryExceptions.Type INCOMPATIBLE_SCHEMA
-
RESOURCE_NOT_FOUND
public static final RegistryExceptions.Type RESOURCE_NOT_FOUND
-
SERIALIZATION_FORMAT_MISMATCH
public static final RegistryExceptions.Type SERIALIZATION_FORMAT_MISMATCH
-
CONNECTION_ERROR
public static final RegistryExceptions.Type CONNECTION_ERROR
-
INTERNAL_SERVER_ERROR
public static final RegistryExceptions.Type INTERNAL_SERVER_ERROR
-
-
Method Detail
-
values
public static RegistryExceptions.Type[] 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 (RegistryExceptions.Type c : RegistryExceptions.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RegistryExceptions.Type 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 namejava.lang.NullPointerException- if the argument is null
-
-