public enum ErrorType extends Enum<ErrorType>
Modifier and Type | Method and Description |
---|---|
boolean |
appendCauseMessage()
Whether the cause of the exception should be added to the error message.
|
int |
getErrorCode()
Gets the error code.
|
String |
getErrorMessage()
Gets the error message.
|
boolean |
isRetriable()
Checks if this is a retriable error.
|
static ErrorType |
valueOf(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.
|
public static final ErrorType ERROR_DB_INIT
public static final ErrorType ERROR_EXCEED_MAXPART
public static final ErrorType ERROR_SET_INPUT
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_HANDLER
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_INIT_LOADER
public static final ErrorType ERROR_INIT_STORER
public static final ErrorType ERROR_NOT_SUPPORTED
public static final ErrorType ERROR_ACCESS_CONTROL
public static final ErrorType ERROR_UNIMPLEMENTED
public static final ErrorType ERROR_INTERNAL_EXCEPTION
public static ErrorType[] values()
for (ErrorType c : ErrorType.values()) System.out.println(c);
public static ErrorType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getErrorCode()
public String getErrorMessage()
public boolean isRetriable()
public boolean appendCauseMessage()
Copyright © 2017 The Apache Software Foundation. All rights reserved.