org.apache.accumulo.core.util.shell
Enum ShellCommandException.ErrorCode

java.lang.Object
  extended by java.lang.Enum<ShellCommandException.ErrorCode>
      extended by org.apache.accumulo.core.util.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
INITIALIZATION_FAILURE
           
UNKNOWN_ERROR
           
UNRECOGNIZED_COMMAND
           
UNSUPPORTED_LANGUAGE
           
XML_PARSING_ERROR
           
 
Method Summary
 String getDescription()
           
 String toString()
           
static ShellCommandException.ErrorCode valueOf(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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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 name
NullPointerException - if the argument is null

getDescription

public String getDescription()

toString

public String toString()
Overrides:
toString in class Enum<ShellCommandException.ErrorCode>


Copyright © 2015 Apache Accumulo Project. All rights reserved.