public enum GifError extends Enum<GifError>
| Enum Constant and Description |
|---|
CLOSE_FAILED
Failed to close given input.
|
DATA_TOO_BIG
Number of pixels bigger than width * height.
|
EOF_TOO_SOON
Image EOF detected before image complete.
|
IMAGE_DEFECT
Image is defective, decoding aborted.
|
IMG_NOT_CONFINED
Image size exceeds screen size.
|
INVALID_BYTE_BUFFER
Invalid and/or indirect byte buffer specified.
|
INVALID_IMG_DIMS
Deprecated.
This error is no longer thrown.
|
INVALID_SCR_DIMS
Invalid screen size, dimensions must be positive.
|
NO_COLOR_MAP
Neither global nor local color map found.
|
NO_ERROR
Special value indicating lack of errors.
|
NO_FRAMES
No frames found, at least one frame required.
|
NO_IMAG_DSCR
No image descriptor detected.
|
NO_SCRN_DSCR
No screen descriptor detected.
|
NOT_ENOUGH_MEM
Failed to allocate required memory.
|
NOT_GIF_FILE
Data is not in GIF format.
|
NOT_READABLE
Given file was not opened for read.
|
OPEN_FAILED
Failed to open given input.
|
READ_FAILED
Failed to read from given input.
|
REWIND_FAILED
Input source rewind has failed, animation is stopped.
|
UNKNOWN
Unknown error, should never appear
|
WRONG_RECORD
Wrong record type detected.
|
| Modifier and Type | Field and Description |
|---|---|
String |
description
Human readable description of the error.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getErrorCode() |
static GifError |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GifError[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GifError NO_ERROR
public static final GifError OPEN_FAILED
public static final GifError READ_FAILED
public static final GifError NOT_GIF_FILE
public static final GifError NO_SCRN_DSCR
public static final GifError NO_IMAG_DSCR
public static final GifError NO_COLOR_MAP
public static final GifError WRONG_RECORD
public static final GifError DATA_TOO_BIG
public static final GifError NOT_ENOUGH_MEM
public static final GifError CLOSE_FAILED
public static final GifError NOT_READABLE
public static final GifError IMAGE_DEFECT
public static final GifError EOF_TOO_SOON
public static final GifError NO_FRAMES
public static final GifError INVALID_SCR_DIMS
@Deprecated public static final GifError INVALID_IMG_DIMS
public static final GifError IMG_NOT_CONFINED
public static final GifError REWIND_FAILED
public static final GifError INVALID_BYTE_BUFFER
public static final GifError UNKNOWN
@NonNull public final String description
public static GifError[] values()
for (GifError c : GifError.values()) System.out.println(c);
public static GifError 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()