Package net.snowflake.ingest.utils
Enum ErrorCode
- java.lang.Object
-
- java.lang.Enum<ErrorCode>
-
- net.snowflake.ingest.utils.ErrorCode
-
- All Implemented Interfaces:
Serializable
,Comparable<ErrorCode>
public enum ErrorCode extends Enum<ErrorCode>
Ingest SDK internal error codes
-
-
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description static String
errorMessageResource
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMessageCode()
String
toString()
static ErrorCode
valueOf(String name)
Returns the enum constant of this type with the specified name.static ErrorCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INTERNAL_ERROR
public static final ErrorCode INTERNAL_ERROR
-
NULL_VALUE
public static final ErrorCode NULL_VALUE
-
NULL_OR_EMPTY_STRING
public static final ErrorCode NULL_OR_EMPTY_STRING
-
INVALID_FORMAT_ROW
public static final ErrorCode INVALID_FORMAT_ROW
-
UNKNOWN_DATA_TYPE
public static final ErrorCode UNKNOWN_DATA_TYPE
-
REGISTER_BLOB_FAILURE
public static final ErrorCode REGISTER_BLOB_FAILURE
-
OPEN_CHANNEL_FAILURE
public static final ErrorCode OPEN_CHANNEL_FAILURE
-
BUILD_REQUEST_FAILURE
public static final ErrorCode BUILD_REQUEST_FAILURE
-
CLIENT_CONFIGURE_FAILURE
public static final ErrorCode CLIENT_CONFIGURE_FAILURE
-
MISSING_CONFIG
public static final ErrorCode MISSING_CONFIG
-
BLOB_UPLOAD_FAILURE
public static final ErrorCode BLOB_UPLOAD_FAILURE
-
RESOURCE_CLEANUP_FAILURE
public static final ErrorCode RESOURCE_CLEANUP_FAILURE
-
INVALID_CHANNEL
public static final ErrorCode INVALID_CHANNEL
-
CLOSED_CHANNEL
public static final ErrorCode CLOSED_CHANNEL
-
INVALID_URL
public static final ErrorCode INVALID_URL
-
CLOSED_CLIENT
public static final ErrorCode CLOSED_CLIENT
-
INVALID_PRIVATE_KEY
public static final ErrorCode INVALID_PRIVATE_KEY
-
INVALID_ENCRYPTED_KEY
public static final ErrorCode INVALID_ENCRYPTED_KEY
-
INVALID_DATA_IN_CHUNK
public static final ErrorCode INVALID_DATA_IN_CHUNK
-
IO_ERROR
public static final ErrorCode IO_ERROR
-
UNABLE_TO_CONNECT_TO_STAGE
public static final ErrorCode UNABLE_TO_CONNECT_TO_STAGE
-
KEYPAIR_CREATION_FAILURE
public static final ErrorCode KEYPAIR_CREATION_FAILURE
-
MD5_HASHING_NOT_AVAILABLE
public static final ErrorCode MD5_HASHING_NOT_AVAILABLE
-
CHANNEL_STATUS_FAILURE
public static final ErrorCode CHANNEL_STATUS_FAILURE
-
CHANNELS_WITH_UNCOMMITTED_ROWS
public static final ErrorCode CHANNELS_WITH_UNCOMMITTED_ROWS
-
INVALID_COLLATION_STRING
public static final ErrorCode INVALID_COLLATION_STRING
-
ENCRYPTION_FAILURE
public static final ErrorCode ENCRYPTION_FAILURE
-
CHANNEL_STATUS_INVALID
public static final ErrorCode CHANNEL_STATUS_INVALID
-
UNSUPPORTED_DATA_TYPE
public static final ErrorCode UNSUPPORTED_DATA_TYPE
-
INVALID_VALUE_ROW
public static final ErrorCode INVALID_VALUE_ROW
-
MAX_ROW_SIZE_EXCEEDED
public static final ErrorCode MAX_ROW_SIZE_EXCEEDED
-
-
Field Detail
-
errorMessageResource
public static final String errorMessageResource
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static 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 (ErrorCode c : 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 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
-
getMessageCode
public String getMessageCode()
-
-