Class EventQueueException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- ej.event.EventQueueException
-
- All Implemented Interfaces:
java.io.Serializable
public class EventQueueException extends java.lang.RuntimeExceptionThrown to indicate that a method has caused an internal EventQueue error. This error is specified by an identifier- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intDATA_EXCEED_24_BITError code-3: thrown when the data value exceeds 24 bits.static intDEFAULT_LISTENER_NULLError code-6: thrown when attempting to set the default listener tonull.static intFIFO_IS_FULLError code-2: thrown when the FIFO buffer is full.static intINVALID_TYPE_MUST_BE_BETWEEN_0_AND_127Error code-1: thrown when an invalid event type is provided.static intMAXIMUM_REGISTERED_EVENTS_REACHEDError code-4: thrown when the maximum number of event types has already been registered.static intNO_LISTENER_REGISTEREDError code-5: thrown when no listener is registered for the specified event type.static intNOT_ENOUGH_BYTES_REMAININGError code-7: thrown if there is not enough bytes remaining in the extended event.
-
-
-
Field Detail
-
INVALID_TYPE_MUST_BE_BETWEEN_0_AND_127
public static final int INVALID_TYPE_MUST_BE_BETWEEN_0_AND_127
Error code-1: thrown when an invalid event type is provided.This occurs if the event type is lower than
0or greater than127Typically thrown by
EventQueue.offerEvent(int, int)orEventQueue.offerExtendedEvent(int type, byte[]).- See Also:
- Constant Field Values
-
FIFO_IS_FULL
public static final int FIFO_IS_FULL
Error code-2: thrown when the FIFO buffer is full.Indicates that the queue cannot accept any new events until previously queued events are processed.
- See Also:
- Constant Field Values
-
DATA_EXCEED_24_BIT
public static final int DATA_EXCEED_24_BIT
Error code-3: thrown when the data value exceeds 24 bits.This can occur when using
EventQueue.offerEvent(int, int)with andatathat cannot be represented within 24 bits, or when callingEventQueue.offerExtendedEvent(int, byte[])with adatabuffer whose length exceeds 24 bits.- See Also:
- Constant Field Values
-
MAXIMUM_REGISTERED_EVENTS_REACHED
public static final int MAXIMUM_REGISTERED_EVENTS_REACHED
Error code-4: thrown when the maximum number of event types has already been registered.- See Also:
- Constant Field Values
-
NO_LISTENER_REGISTERED
public static final int NO_LISTENER_REGISTERED
Error code-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.
-
DEFAULT_LISTENER_NULL
public static final int DEFAULT_LISTENER_NULL
Error code-6: thrown when attempting to set the default listener tonull.This occurs when calling
EventQueue.setDefaultListener(ej.event.EventQueueListener)with anullreference. The default listener is required to handle events that do not correspond to any registered listener type.
-
NOT_ENOUGH_BYTES_REMAINING
public static final int NOT_ENOUGH_BYTES_REMAINING
Error code-7: thrown if there is not enough bytes remaining in the extended event.This occurs when calling
EventQueueDataReader.readFully(byte[])- See Also:
- Constant Field Values
-
-