Package org.graylog.events.processor
Class EventProcessorException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.graylog.events.processor.EventProcessorException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
EventProcessorPreconditionException
This is thrown when an
EventProcessor
fails.- See Also:
-
Constructor Summary
ConstructorDescriptionEventProcessorException
(String message, boolean permanent, String eventDefinitionId) EventProcessorException
(String message, boolean permanent, String eventDefinitionId, EventDefinition eventDefinition) EventProcessorException
(String message, boolean permanent, String eventDefinitionId, EventDefinition eventDefinition, Throwable cause) EventProcessorException
(String message, boolean permanent, EventDefinition eventDefinition) EventProcessorException
(String message, boolean permanent, EventDefinition eventDefinition, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionReturns the event definition that failed.Returns the event definition ID that failed to execute.boolean
Indicates if an error is permanent or temporary.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
EventProcessorException
-
EventProcessorException
-
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
Returns the event definition ID that failed to execute.- Returns:
- the event definition ID
-
getEventDefinition
Returns the event definition that failed.- Returns:
- the event definition for the failed processor or an empty
Optional
if absent
-