Skip navigation links
com.bea.wlevs.ede.api
Class EventRejectedException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.lang.RuntimeException
|
+--com.bea.wlevs.ede.api.EventProcessingException
|
+--com.bea.wlevs.ede.api.EventRejectedException
- public class EventRejectedException
- extends EventProcessingException
- implements java.io.Serializable
An EventRejectedException
can be raised by the application developer to indicate that an EPN node is rejecting events.
An EventRejectedException
differs from its parent EventProcessingException
in so far that the rejection is a explicit decision by the application, rather than necessarily a runtime exception while processing the event.
The handler of an EventRejectedException
may opt on treating this exception differently than of a runtime event processing exception.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
EventRejectedException
public EventRejectedException(EventRejectedException.Reason reason,
java.util.List rejected,
java.lang.String desc)
- Constructor for EventRejectedException
-
- Parameters:
reason
- Reason for rejection
rejected
- Rejected events
desc
- Description
EventRejectedException
public EventRejectedException(EventRejectedException.Reason reason,
java.util.List rejected,
java.lang.String desc,
java.lang.String origin)
- Constructor for EventRejectedException
-
- Parameters:
reason
- Reason for rejection
rejected
- Rejected events
desc
- Description
origin
- Identity of the EPN node rejecting the events
getRejectedEvents
public java.util.List getRejectedEvents()
- Retrieves the collection of rejected events.
-
- Returns:
- Collection of rejected events.
getReason
public EventRejectedException.Reason getReason()
- Retrieves the reason the EPN node rejected the event(s).
-
- Returns:
- Reason the events were rejected.