Class EventProcessorException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.graylog.events.processor.EventProcessorException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
EventProcessorPreconditionException

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

    • EventProcessorException

      public EventProcessorException(String message, boolean permanent, String eventDefinitionId)
    • EventProcessorException

      public EventProcessorException(String message, boolean permanent, EventDefinition eventDefinition)
    • EventProcessorException

      public EventProcessorException(String message, boolean permanent, String eventDefinitionId, EventDefinition eventDefinition)
    • EventProcessorException

      public EventProcessorException(String message, boolean permanent, String eventDefinitionId, EventDefinition eventDefinition, Throwable cause)
    • EventProcessorException

      public EventProcessorException(String message, boolean permanent, EventDefinition eventDefinition, Throwable 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
    • getEventDefinitionId

      public String getEventDefinitionId()
      Returns the event definition ID that failed to execute.
      Returns:
      the event definition ID
    • getEventDefinition

      public Optional<EventDefinition> getEventDefinition()
      Returns the event definition that failed.
      Returns:
      the event definition for the failed processor or an empty Optional if absent