public class VectorGraphicsException extends RuntimeException
getErrorCode()
.Modifier and Type | Field and Description |
---|---|
static int |
FONT_INVALID
Exception thrown when a font cannot be loaded.
|
static int |
FONT_INVALID_PATH
Exception thrown when a font cannot be retrieved.
|
static int |
IMAGE_INVALID
Exception thrown when an image cannot be drawn.
|
static int |
IMAGE_INVALID_PATH
Exception thrown when an image cannot be retrieved.
|
static int |
IMAGE_OVERLAPPING_ELEMENTS
Exception thrown when an image with overlapping elements is drawn or filtered with a transparent alpha.
|
static int |
IMAGE_PARSING_ERROR
Exception thrown when an image could not be loaded because of a parsing error.
|
static int |
NO_COMPLEX_LAYOUTER_ERROR
Exception thrown when a font is loaded with complex text layout enabled but no complex layouter is available.
|
static int |
OUT_OF_MEMORY
Exception thrown when an out of memory error occurs.
|
static int |
RESOURCE_CLOSED
Exception thrown when the application is trying to use a resource that has been closed.
|
Constructor and Description |
---|
VectorGraphicsException(int errorCode)
Constructs an exception with the specified error code.
|
Modifier and Type | Method and Description |
---|---|
int |
getErrorCode()
Gets the reason why the exception has been thrown.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, toString
public static final int FONT_INVALID
Value -4
is assigned to FONT_INVALID
.
public static final int FONT_INVALID_PATH
Value -3
is assigned to FONT_INVALID_PATH
.
public static final int IMAGE_INVALID
Value -2
is assigned to IMAGE_INVALID
.
public static final int IMAGE_INVALID_PATH
Value -1
is assigned to IMAGE_INVALID_PATH
.
public static final int IMAGE_OVERLAPPING_ELEMENTS
Value -3
is assigned to IMAGE_OVERLAPPING_ELEMENTS
.
public static final int IMAGE_PARSING_ERROR
Value -7
is assigned to IMAGE_PARSING_ERROR
.
public static final int NO_COMPLEX_LAYOUTER_ERROR
Value -8
is assigned to NO_COMPLEX_LAYOUTER_ERROR
.
public static final int OUT_OF_MEMORY
Value -9
is assigned to OUT_OF_MEMORY
.
public static final int RESOURCE_CLOSED
Value -5
is assigned to RESOURCE_CLOSED
.