public enum SnappyErrorCode extends java.lang.Enum<SnappyErrorCode>
| Enum Constant and Description |
|---|
EMPTY_INPUT |
FAILED_TO_LOAD_NATIVE_LIBRARY |
FAILED_TO_UNCOMPRESS |
INCOMPATIBLE_VERSION |
INVALID_CHUNK_SIZE |
NOT_A_DIRECT_BUFFER |
OUT_OF_MEMORY |
PARSING_ERROR |
UNKNOWN |
UNSUPPORTED_PLATFORM |
| Modifier and Type | Field and Description |
|---|---|
int |
id |
| Modifier and Type | Method and Description |
|---|---|
static SnappyErrorCode |
getErrorCode(int id) |
static java.lang.String |
getErrorMessage(int id) |
static SnappyErrorCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SnappyErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SnappyErrorCode UNKNOWN
public static final SnappyErrorCode FAILED_TO_LOAD_NATIVE_LIBRARY
public static final SnappyErrorCode PARSING_ERROR
public static final SnappyErrorCode NOT_A_DIRECT_BUFFER
public static final SnappyErrorCode OUT_OF_MEMORY
public static final SnappyErrorCode FAILED_TO_UNCOMPRESS
public static final SnappyErrorCode EMPTY_INPUT
public static final SnappyErrorCode INCOMPATIBLE_VERSION
public static final SnappyErrorCode INVALID_CHUNK_SIZE
public static final SnappyErrorCode UNSUPPORTED_PLATFORM
public static SnappyErrorCode[] values()
for (SnappyErrorCode c : SnappyErrorCode.values()) System.out.println(c);
public static SnappyErrorCode 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 namejava.lang.NullPointerException - if the argument is nullpublic static SnappyErrorCode getErrorCode(int id)
public static java.lang.String getErrorMessage(int id)