Class EventHandlingException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- de.aristaflow.adept2.model.events.EventHandlingException
-
- All Implemented Interfaces:
Serializable
public class EventHandlingException extends Exception
This exception indicates that an event handler had a problem when handling an event. Usually event handling will continue with other event handler that have been registered for the same event type and source type.- Author:
- Ulrich Kreher
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
critical
Whether the exception is critical and therefore event handling should be aborted.
-
Constructor Summary
Constructors Constructor Description EventHandlingException(String message)
Creates a new non-criticalEventHandlingException
having the designated message.EventHandlingException(String message, boolean critical)
Creates a newEventHandlingException
having the designated message.EventHandlingException(String message, Throwable cause)
Creates a new non-criticalEventHandlingException
having the designated message and the designated cause.EventHandlingException(String message, Throwable cause, boolean critical)
Creates a newEventHandlingException
having the designated message and the designated cause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isCritical()
Gets whether the exception is critical and therefore event handling should be aborted.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
EventHandlingException
public EventHandlingException(String message)
Creates a new non-criticalEventHandlingException
having the designated message.- Parameters:
message
- The message describing the cause of theEventHandlingException
.
-
EventHandlingException
public EventHandlingException(String message, boolean critical)
Creates a newEventHandlingException
having the designated message.- Parameters:
message
- The message describing the cause of theEventHandlingException
.critical
- Whether the exception is critical and therefore event handling should be aborted.
Note that this will not abort concurrent event handling unless your hander is exclusive.
-
EventHandlingException
public EventHandlingException(String message, Throwable cause)
Creates a new non-criticalEventHandlingException
having the designated message and the designated cause.- Parameters:
message
- The message describing the cause of theEventHandlingException
.cause
- The exception causing theEventHandlingException
.
-
EventHandlingException
public EventHandlingException(String message, Throwable cause, boolean critical)
Creates a newEventHandlingException
having the designated message and the designated cause.- Parameters:
message
- The message describing the cause of theEventHandlingException
.cause
- The exception causing theEventHandlingException
.critical
- Whether the exception is critical and therefore event handling should be aborted.
Note that this will not abort concurrent event handling unless your hander is exclusive.
-
-