public enum SnappyErrorCode extends 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 |
TOO_LARGE_INPUT |
UNKNOWN |
UNSUPPORTED_PLATFORM |
Modifier and Type | Field and Description |
---|---|
int |
id |
Modifier and Type | Method and Description |
---|---|
static SnappyErrorCode |
getErrorCode(int id) |
static String |
getErrorMessage(int id) |
static SnappyErrorCode |
valueOf(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 final SnappyErrorCode TOO_LARGE_INPUT
public static SnappyErrorCode[] values()
for (SnappyErrorCode c : SnappyErrorCode.values()) System.out.println(c);
public static SnappyErrorCode 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 static SnappyErrorCode getErrorCode(int id)
public static String getErrorMessage(int id)
Copyright © 2011–2023 xerial.org. All rights reserved.