|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ErrorType>
org.apache.hcatalog.common.ErrorType
public enum ErrorType
Enum type representing the various errors throws by HCat.
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 |
---|
public static final ErrorType ERROR_DB_INIT
public static final ErrorType ERROR_EXCEED_MAXPART
public static final ErrorType ERROR_INVALID_TABLE
public static final ErrorType ERROR_SET_OUTPUT
public static final ErrorType ERROR_DUPLICATE_PARTITION
public static final ErrorType ERROR_NON_EMPTY_TABLE
public static final ErrorType ERROR_NOT_INITIALIZED
public static final ErrorType ERROR_INIT_STORAGE_DRIVER
public static final ErrorType ERROR_PUBLISHING_PARTITION
public static final ErrorType ERROR_SCHEMA_COLUMN_MISMATCH
public static final ErrorType ERROR_SCHEMA_PARTITION_KEY
public static final ErrorType ERROR_SCHEMA_TYPE_MISMATCH
public static final ErrorType ERROR_INVALID_PARTITION_VALUES
public static final ErrorType ERROR_MISSING_PARTITION_KEY
public static final ErrorType ERROR_MOVE_FAILED
public static final ErrorType ERROR_TOO_MANY_DYNAMIC_PTNS
public static final ErrorType ERROR_ACCESS_CONTROL
public static final ErrorType ERROR_UNIMPLEMENTED
public static final ErrorType ERROR_INTERNAL_EXCEPTION
Method Detail |
---|
public static ErrorType[] values()
for (ErrorType c : ErrorType.values()) System.out.println(c);
public static ErrorType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic int getErrorCode()
public java.lang.String getErrorMessage()
public boolean isRetriable()
public boolean appendCauseMessage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |