Package io.pravega.shared.protocol.netty
Enum WireCommands.ErrorMessage.ErrorCode
- java.lang.Object
-
- java.lang.Enum<WireCommands.ErrorMessage.ErrorCode>
-
- io.pravega.shared.protocol.netty.WireCommands.ErrorMessage.ErrorCode
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<WireCommands.ErrorMessage.ErrorCode>
- Enclosing class:
- WireCommands.ErrorMessage
public static enum WireCommands.ErrorMessage.ErrorCode extends java.lang.Enum<WireCommands.ErrorMessage.ErrorCode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ILLEGAL_ARGUMENT_EXCEPTIONUNSPECIFIED
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCode()java.lang.ClassgetExceptionType()static WireCommands.ErrorMessage.ErrorCodevalueOf(int code)Returns the enum constant of this type with the specified name.static WireCommands.ErrorMessage.ErrorCodevalueOf(java.lang.Class exception)Returns the enum constant of this type with the specified name.static WireCommands.ErrorMessage.ErrorCodevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static WireCommands.ErrorMessage.ErrorCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNSPECIFIED
public static final WireCommands.ErrorMessage.ErrorCode UNSPECIFIED
-
ILLEGAL_ARGUMENT_EXCEPTION
public static final WireCommands.ErrorMessage.ErrorCode ILLEGAL_ARGUMENT_EXCEPTION
-
-
Method Detail
-
values
public static WireCommands.ErrorMessage.ErrorCode[] 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 (WireCommands.ErrorMessage.ErrorCode c : WireCommands.ErrorMessage.ErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WireCommands.ErrorMessage.ErrorCode 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
-
valueOf
public static WireCommands.ErrorMessage.ErrorCode valueOf(int code)
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:
code- 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
-
valueOf
public static WireCommands.ErrorMessage.ErrorCode valueOf(java.lang.Class exception)
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:
exception- 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
-
getCode
public int getCode()
-
getExceptionType
public java.lang.Class getExceptionType()
-
-