public class RawRecordHeaderErrorMessageStrategy extends Object implements ErrorMessageStrategy
ErrorMessageStrategy
extension that adds the raw record as
a header to the ErrorMessage
.Constructor and Description |
---|
RawRecordHeaderErrorMessageStrategy() |
Modifier and Type | Method and Description |
---|---|
ErrorMessage |
buildErrorMessage(Throwable throwable,
AttributeAccessor context)
Build the error message.
|
public ErrorMessage buildErrorMessage(Throwable throwable, @Nullable AttributeAccessor context)
ErrorMessageStrategy
buildErrorMessage
in interface ErrorMessageStrategy
throwable
- the payload.context
- the attributes.