public class MicroUIException extends RuntimeException
getErrorCode()
.Modifier and Type | Field and Description |
---|---|
static int |
DISPLAY_DEADLOCK
Exception thrown when trying to wait for an event in the same thread that treats events (Deadlock).
|
static int |
GENERIC_EVENT_GENERATOR_INVALID_CLASSNAME
Exception thrown when generic event generator classname is unknown.
|
static int |
IMAGE_OUT_OF_MEMORY
Exception thrown when there is not enough space in images heap when creating a new image.
|
static int |
IMAGE_UNKNOWN_FORMAT
Exception thrown when the image cannot be decoded because there is no runtime decoder able to decode this kind of
image.
|
static int |
MICROUI_NOT_STARTED
Exception thrown when trying to use MicroUI APIs without starting it before.
|
static int |
NO_DISPLAY
|
static int |
NO_FONT
|
static int |
OUT_OF_EVENTS
Exception thrown when
Display 's event serializer queue is full. |
static int |
RESOURCE_CLOSED
Exception thrown when the application is trying to use a resource which has been closed.
|
static int |
RESOURCE_INVALID_FILE
Exception thrown when the resource content cannot be read for any reason.
|
static int |
RESOURCE_INVALID_PATH
Exception thrown when a resource cannot be retrieved.
|
Constructor and Description |
---|
MicroUIException(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 DISPLAY_DEADLOCK
Value -3
is assigned to DISPLAY_DEADLOCK
.
public static final int GENERIC_EVENT_GENERATOR_INVALID_CLASSNAME
Value -2
is assigned to GENERIC_EVENT_GENERATOR_INVALID_CLASSNAME
.
public static final int IMAGE_OUT_OF_MEMORY
Value -7
is assigned to IMAGE_OUT_OF_MEMORY
.
public static final int IMAGE_UNKNOWN_FORMAT
Value -8
is assigned to IMAGE_UNKNOWN_FORMAT
.
public static final int MICROUI_NOT_STARTED
Value -1
is assigned to MICROUI_NOT_STARTED
.
public static final int NO_DISPLAY
Display
whereas there is no Display
on the
platform.
Value -10
is assigned to NO_DISPLAY
.
public static final int NO_FONT
Font
whereas there is no Font
on the
platform.
Value -11
is assigned to NO_FONT
.
public static final int OUT_OF_EVENTS
Display
's event serializer queue is full. The new event cannot be added to this
queue. Review the queue size or decrease the number of events added to this queue.
Value -9
is assigned to OUT_OF_EVENTS
.
public static final int RESOURCE_CLOSED
Value -6
is assigned to RESOURCE_CLOSED
.
public static final int RESOURCE_INVALID_FILE
Value -5
is assigned to RESOURCE_INVALID_FILE
.
public static final int RESOURCE_INVALID_PATH
Value -4
is assigned to RESOURCE_INVALID_PATH
.