public class EventQueueException extends RuntimeException
| Modifier and Type | Field and Description |
|---|---|
static int |
DATA_EXCEED_24_BIT
Error code
-3: thrown when the data value exceeds 24 bits. |
static int |
DEFAULT_LISTENER_NULL
Error code
-6: thrown when attempting to set the default listener to null. |
static int |
FIFO_IS_FULL
Error code
-2: thrown when the FIFO buffer is full. |
static int |
INVALID_TYPE_MUST_BE_BETWEEN_0_AND_127
Error code
-1: thrown when an invalid event type is provided. |
static int |
MAXIMUM_REGISTERED_EVENTS_REACHED
Error code
-4: thrown when the maximum number of event types
has already been registered. |
static int |
NO_LISTENER_REGISTERED
Error code
-5: thrown when no listener is registered for the specified event type. |
static int |
NOT_ENOUGH_BYTES_REMAINING
Error code
-7: thrown if there is not enough bytes remaining in the extended event. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, toStringpublic static final int DATA_EXCEED_24_BIT
-3: thrown when the data value exceeds 24 bits.
This can occur when using EventQueue.offerEvent(int, int) with an
data that cannot be represented within 24 bits, or when calling
EventQueue.offerExtendedEvent(int, byte[]) with a data buffer
whose length exceeds 24 bits.
public static final int DEFAULT_LISTENER_NULL
-6: thrown when attempting to set the default listener to null.
This occurs when calling EventQueue.setDefaultListener(ej.event.EventQueueListener)
with a null reference. The default listener is required to handle events that do not
correspond to any registered listener type.
public static final int FIFO_IS_FULL
-2: thrown when the FIFO buffer is full.
Indicates that the queue cannot accept any new events until previously queued events are processed.
public static final int INVALID_TYPE_MUST_BE_BETWEEN_0_AND_127
-1: thrown when an invalid event type is provided.
This occurs if the event type is lower than 0 or greater than 127
Typically thrown by EventQueue.offerEvent(int, int) or
EventQueue.offerExtendedEvent(int type, byte[]).
public static final int MAXIMUM_REGISTERED_EVENTS_REACHED
-4: thrown when the maximum number of event types
has already been registered.public static final int NO_LISTENER_REGISTERED
-5: thrown when no listener is registered for the specified event type.
This occurs when an event is offered with a type value that does not correspond to any registered listener.
public static final int NOT_ENOUGH_BYTES_REMAINING
-7: thrown if there is not enough bytes remaining in the extended event.
This occurs when calling EventQueueDataReader.readFully(byte[])