Class EventModifierException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.graylog.events.processor.modifier.EventModifierException
All Implemented Interfaces:
Serializable

public class EventModifierException extends Exception
This is thrown when an EventModifier fails.
See Also:
  • Constructor Details

    • EventModifierException

      public EventModifierException(String message, boolean permanent, boolean skip, Throwable cause)
      Constructs a new exception.
      Parameters:
      message - the exception message
      permanent - whether the error is permanent or not (should it be retried?)
      skip - whether the error can be skipped and processing of the event should continue
      cause - 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 the EventProcessorEngine and processing of the event should continue.
      Returns:
      true if the error is skippable, false if not skippable