public class ErrorContext extends Object
Constructor and Description |
---|
ErrorContext(String eventProcessor,
Throwable error,
List<? extends EventMessage<?>> failedEvents)
Instantiate an ErrorContext for the given
eventProcessor , due to the given error , with the given
failedEvents . |
Modifier and Type | Method and Description |
---|---|
Throwable |
error()
Returns the error that was raised in the processor
|
String |
eventProcessor()
Returns the name of the Event Processor where the error occurred.
|
List<? extends EventMessage<?>> |
failedEvents()
The events part of the batch that failed.
|
public ErrorContext(@Nonnull String eventProcessor, @Nonnull Throwable error, @Nonnull List<? extends EventMessage<?>> failedEvents)
eventProcessor
, due to the given error
, with the given
failedEvents
.eventProcessor
- the name of the event processor that failed to process the given eventserror
- the error that was raised during processingfailedEvents
- the list of events that triggered the errorpublic String eventProcessor()
public Throwable error()
public List<? extends EventMessage<?>> failedEvents()
Copyright © 2010–2024. All rights reserved.