Package ej.microui
Class MicroUIException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- ej.microui.MicroUIException
-
- All Implemented Interfaces:
Serializable
public class MicroUIException extends RuntimeException
Thrown to indicate that a method has caused an internal MicroUI error. This error is specified by an identifier and this identifier can be retrieved callinggetErrorCode().- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intDISPLAY_DEADLOCKException thrown when trying to wait for an event in the same thread that treats events (Deadlock).static intDRAWING_ERRORException thrown if the error flag was set during a drawing operation.static intEVENTGENERATOR_POOL_FULLException thrown when the pool ofEventGeneratoris full.static intGENERIC_EVENT_GENERATOR_INVALID_CLASSNAMEException thrown when generic event generator classname is unknown.static intIMAGE_OUT_OF_MEMORYException thrown when there is not enough space in images heap when creating a new image.static intIMAGE_UNKNOWN_FORMATException thrown when the image cannot be decoded because there is no runtime decoder able to decode this kind of image.static intIMAGE_UNSUPPORTED_FORMATException thrown if the format is not supported when creating an image or graphics context.static intMICROUI_NOT_STARTEDException thrown when trying to use MicroUI APIs without starting it before.static intNO_DISPLAYstatic intNO_FONTstatic intOUT_OF_EVENTSException thrown whenDisplay's event serializer queue is full.static intRESOURCE_CLOSEDException thrown when the application is trying to use a resource which has been closed.static intRESOURCE_INVALID_FILEException thrown when the resource content cannot be read for any reason.static intRESOURCE_INVALID_PATHException thrown when a resource cannot be retrieved.
-
Constructor Summary
Constructors Constructor Description MicroUIException(int errorCode)Constructs an exception with the specified error code.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetErrorCode()Gets the reason why the exception has been thrown.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, toString
-
-
-
-
Field Detail
-
MICROUI_NOT_STARTED
public static final int MICROUI_NOT_STARTED
Exception thrown when trying to use MicroUI APIs without starting it before.Value
-1is assigned toMICROUI_NOT_STARTED.
-
GENERIC_EVENT_GENERATOR_INVALID_CLASSNAME
public static final int GENERIC_EVENT_GENERATOR_INVALID_CLASSNAME
Exception thrown when generic event generator classname is unknown. Please check your classpath to add the expected class.Value
-2is assigned toGENERIC_EVENT_GENERATOR_INVALID_CLASSNAME.- See Also:
- Constant Field Values
-
DISPLAY_DEADLOCK
public static final int DISPLAY_DEADLOCK
Exception thrown when trying to wait for an event in the same thread that treats events (Deadlock).Value
-3is assigned toDISPLAY_DEADLOCK.
-
RESOURCE_INVALID_PATH
public static final int RESOURCE_INVALID_PATH
Exception thrown when a resource cannot be retrieved. Path must be relative to the application classpath and starts with '/'.Value
-4is assigned toRESOURCE_INVALID_PATH.- See Also:
- Constant Field Values
-
RESOURCE_INVALID_FILE
public static final int RESOURCE_INVALID_FILE
Exception thrown when the resource content cannot be read for any reason.Value
-5is assigned toRESOURCE_INVALID_FILE.- See Also:
- Constant Field Values
-
RESOURCE_CLOSED
public static final int RESOURCE_CLOSED
Exception thrown when the application is trying to use a resource which has been closed.Value
-6is assigned toRESOURCE_CLOSED.- See Also:
- Constant Field Values
-
IMAGE_OUT_OF_MEMORY
public static final int IMAGE_OUT_OF_MEMORY
Exception thrown when there is not enough space in images heap when creating a new image.Value
-7is assigned toIMAGE_OUT_OF_MEMORY.- See Also:
- Constant Field Values
-
IMAGE_UNKNOWN_FORMAT
public static final 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.Value
-8is assigned toIMAGE_UNKNOWN_FORMAT.- See Also:
- Constant Field Values
-
OUT_OF_EVENTS
public static final int OUT_OF_EVENTS
Exception thrown whenDisplay'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
-9is assigned toOUT_OF_EVENTS.- See Also:
- Constant Field Values
-
NO_DISPLAY
public static final int NO_DISPLAY
Exception thrown when the application tries to get aDisplaywhereas there is noDisplayon the platform.Value
-10is assigned toNO_DISPLAY.- See Also:
- Constant Field Values
-
NO_FONT
public static final int NO_FONT
Exception thrown when the application tries to get aFontwhereas there is noFonton the platform.Value
-11is assigned toNO_FONT.- See Also:
- Constant Field Values
-
EVENTGENERATOR_POOL_FULL
public static final int EVENTGENERATOR_POOL_FULL
Exception thrown when the pool ofEventGeneratoris full.Value
-12is assigned toEVENTGENERATOR_POOL_FULL.
-
DRAWING_ERROR
public static final int DRAWING_ERROR
Exception thrown if the error flag was set during a drawing operation. The check is performed when the screen is flushed or when explicitly requested.Value
-13is assigned toDRAWING_ERROR.- See Also:
- Constant Field Values
-
IMAGE_UNSUPPORTED_FORMAT
public static final int IMAGE_UNSUPPORTED_FORMAT
Exception thrown if the format is not supported when creating an image or graphics context.Value
-14is assigned toIMAGE_UNSUPPORTED_FORMAT.
-
-