Package org.apache.accumulo.shell
Enum ShellCommandException.ErrorCode
- java.lang.Object
-
- java.lang.Enum<ShellCommandException.ErrorCode>
-
- org.apache.accumulo.shell.ShellCommandException.ErrorCode
-
- All Implemented Interfaces:
Serializable,Comparable<ShellCommandException.ErrorCode>
- Enclosing class:
- ShellCommandException
public static enum ShellCommandException.ErrorCode extends Enum<ShellCommandException.ErrorCode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INITIALIZATION_FAILUREUNKNOWN_ERRORUNRECOGNIZED_COMMANDUNSUPPORTED_LANGUAGEXML_PARSING_ERROR
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()StringtoString()static ShellCommandException.ErrorCodevalueOf(String name)Returns the enum constant of this type with the specified name.static ShellCommandException.ErrorCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN_ERROR
public static final ShellCommandException.ErrorCode UNKNOWN_ERROR
-
UNSUPPORTED_LANGUAGE
public static final ShellCommandException.ErrorCode UNSUPPORTED_LANGUAGE
-
UNRECOGNIZED_COMMAND
public static final ShellCommandException.ErrorCode UNRECOGNIZED_COMMAND
-
INITIALIZATION_FAILURE
public static final ShellCommandException.ErrorCode INITIALIZATION_FAILURE
-
XML_PARSING_ERROR
public static final ShellCommandException.ErrorCode XML_PARSING_ERROR
-
-
Method Detail
-
values
public static ShellCommandException.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 (ShellCommandException.ErrorCode c : ShellCommandException.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 ShellCommandException.ErrorCode valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getDescription
public String getDescription()
-
toString
public String toString()
- Overrides:
toStringin classEnum<ShellCommandException.ErrorCode>
-
-