org.apache.hcatalog.common
Enum ErrorType

java.lang.Object
  extended by java.lang.Enum<ErrorType>
      extended by org.apache.hcatalog.common.ErrorType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ErrorType>

public enum ErrorType
extends java.lang.Enum<ErrorType>

Enum type representing the various errors throws by HCat.


Enum Constant Summary
ERROR_ACCESS_CONTROL
           
ERROR_DB_INIT
           
ERROR_DUPLICATE_PARTITION
           
ERROR_EXCEED_MAXPART
           
ERROR_INIT_STORAGE_DRIVER
           
ERROR_INTERNAL_EXCEPTION
           
ERROR_INVALID_PARTITION_VALUES
           
ERROR_INVALID_TABLE
           
ERROR_MISSING_PARTITION_KEY
           
ERROR_MOVE_FAILED
           
ERROR_NON_EMPTY_TABLE
           
ERROR_NOT_INITIALIZED
           
ERROR_PUBLISHING_PARTITION
           
ERROR_SCHEMA_COLUMN_MISMATCH
           
ERROR_SCHEMA_PARTITION_KEY
           
ERROR_SCHEMA_TYPE_MISMATCH
           
ERROR_SET_OUTPUT
           
ERROR_TOO_MANY_DYNAMIC_PTNS
           
ERROR_UNIMPLEMENTED
           
 
Method Summary
 boolean appendCauseMessage()
          Whether the cause of the exception should be added to the error message.
 int getErrorCode()
          Gets the error code.
 java.lang.String getErrorMessage()
          Gets the error message.
 boolean isRetriable()
          Checks if this is a retriable error.
static ErrorType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ErrorType[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ERROR_DB_INIT

public static final ErrorType ERROR_DB_INIT

ERROR_EXCEED_MAXPART

public static final ErrorType ERROR_EXCEED_MAXPART

ERROR_INVALID_TABLE

public static final ErrorType ERROR_INVALID_TABLE

ERROR_SET_OUTPUT

public static final ErrorType ERROR_SET_OUTPUT

ERROR_DUPLICATE_PARTITION

public static final ErrorType ERROR_DUPLICATE_PARTITION

ERROR_NON_EMPTY_TABLE

public static final ErrorType ERROR_NON_EMPTY_TABLE

ERROR_NOT_INITIALIZED

public static final ErrorType ERROR_NOT_INITIALIZED

ERROR_INIT_STORAGE_DRIVER

public static final ErrorType ERROR_INIT_STORAGE_DRIVER

ERROR_PUBLISHING_PARTITION

public static final ErrorType ERROR_PUBLISHING_PARTITION

ERROR_SCHEMA_COLUMN_MISMATCH

public static final ErrorType ERROR_SCHEMA_COLUMN_MISMATCH

ERROR_SCHEMA_PARTITION_KEY

public static final ErrorType ERROR_SCHEMA_PARTITION_KEY

ERROR_SCHEMA_TYPE_MISMATCH

public static final ErrorType ERROR_SCHEMA_TYPE_MISMATCH

ERROR_INVALID_PARTITION_VALUES

public static final ErrorType ERROR_INVALID_PARTITION_VALUES

ERROR_MISSING_PARTITION_KEY

public static final ErrorType ERROR_MISSING_PARTITION_KEY

ERROR_MOVE_FAILED

public static final ErrorType ERROR_MOVE_FAILED

ERROR_TOO_MANY_DYNAMIC_PTNS

public static final ErrorType ERROR_TOO_MANY_DYNAMIC_PTNS

ERROR_ACCESS_CONTROL

public static final ErrorType ERROR_ACCESS_CONTROL

ERROR_UNIMPLEMENTED

public static final ErrorType ERROR_UNIMPLEMENTED

ERROR_INTERNAL_EXCEPTION

public static final ErrorType ERROR_INTERNAL_EXCEPTION
Method Detail

values

public static ErrorType[] 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 (ErrorType c : ErrorType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ErrorType 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 name
java.lang.NullPointerException - if the argument is null

getErrorCode

public int getErrorCode()
Gets the error code.

Returns:
the error code

getErrorMessage

public java.lang.String getErrorMessage()
Gets the error message.

Returns:
the error message

isRetriable

public boolean isRetriable()
Checks if this is a retriable error.

Returns:
true, if is a retriable error, false otherwise

appendCauseMessage

public boolean appendCauseMessage()
Whether the cause of the exception should be added to the error message.

Returns:
true, if the cause should be added to the message, false otherwise