Class RawRecordHeaderErrorMessageStrategy

java.lang.Object
org.springframework.integration.kafka.support.RawRecordHeaderErrorMessageStrategy
All Implemented Interfaces:
org.springframework.integration.support.ErrorMessageStrategy

public class RawRecordHeaderErrorMessageStrategy
extends java.lang.Object
implements org.springframework.integration.support.ErrorMessageStrategy
ErrorMessageStrategy extension that adds the raw record as a header to the ErrorMessage.
Since:
5.4
  • Constructor Summary

    Constructors 
    Constructor Description
    RawRecordHeaderErrorMessageStrategy()  
  • Method Summary

    Modifier and Type Method Description
    org.springframework.messaging.support.ErrorMessage buildErrorMessage​(java.lang.Throwable throwable, org.springframework.core.AttributeAccessor context)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • buildErrorMessage

      public org.springframework.messaging.support.ErrorMessage buildErrorMessage​(java.lang.Throwable throwable, @Nullable org.springframework.core.AttributeAccessor context)
      Specified by:
      buildErrorMessage in interface org.springframework.integration.support.ErrorMessageStrategy