Class EventModifierException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.graylog.events.processor.modifier.EventModifierException
- All Implemented Interfaces:
Serializable
This is thrown when an
EventModifier fails.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEventModifierException(String message, boolean permanent, boolean skip, Throwable cause) Constructs a new exception. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates if an error is permanent or temporary.booleanisSkip()Indicates if this error can be skipped by theEventProcessorEngineand processing of the event should continue.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
EventModifierException
Constructs a new exception.- Parameters:
message- the exception messagepermanent- whether the error is permanent or not (should it be retried?)skip- whether the error can be skipped and processing of the event should continuecause- the cause
-
-
Method Details
-
isPermanent
public boolean isPermanent()Indicates if an error is permanent or temporary. Temporary errors could be candidates for retries.- Returns:
- true if the error is permanent, false if temporary
-
isSkip
public boolean isSkip()Indicates if this error can be skipped by theEventProcessorEngineand processing of the event should continue.- Returns:
- true if the error is skippable, false if not skippable
-