Class ConversionException
- java.lang.Object
- 
- java.lang.Throwable
- 
- java.lang.Exception
- 
- java.lang.RuntimeException
- 
- org.springframework.core.NestedRuntimeException
- 
- org.springframework.kafka.KafkaException
- 
- org.springframework.kafka.support.converter.ConversionException
 
 
 
 
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable
 
 public class ConversionException extends KafkaException Exception for conversions.- Author:
- Gary Russell
- See Also:
- Serialized Form
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.springframework.kafka.KafkaExceptionKafkaException.Level
 
- 
 - 
Constructor SummaryConstructors Constructor Description ConversionException(java.lang.String message, java.lang.Throwable cause)Construct an instance with the provided properties.ConversionException(java.lang.String message, java.util.List<org.apache.kafka.clients.consumer.ConsumerRecord<?,?>> records, java.lang.Throwable cause)Construct an instance with the provided properties.ConversionException(java.lang.String message, org.apache.kafka.clients.consumer.ConsumerRecord<?,?> record, java.lang.Throwable cause)Construct an instance with the provided properties.ConversionException(java.lang.String message, org.springframework.messaging.Message<?> msg, java.lang.Throwable cause)Construct an instance with the provided properties.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.messaging.Message<?>getMsg()Return theMessage, if available.org.apache.kafka.clients.consumer.ConsumerRecord<?,?>getRecord()Return the consumer record, if available.java.util.List<org.apache.kafka.clients.consumer.ConsumerRecord<?,?>>getRecords()Return the consumer record, if available.- 
Methods inherited from class org.springframework.kafka.KafkaExceptionselfLog
 - 
Methods inherited from class org.springframework.core.NestedRuntimeExceptioncontains, getMessage, getMostSpecificCause, getRootCause
 
- 
 
- 
- 
- 
Constructor Detail- 
ConversionExceptionpublic ConversionException(java.lang.String message, java.lang.Throwable cause)Construct an instance with the provided properties.- Parameters:
- message- A text message describing the reason.
- cause- the cause.
 
 - 
ConversionExceptionpublic ConversionException(java.lang.String message, org.apache.kafka.clients.consumer.ConsumerRecord<?,?> record, java.lang.Throwable cause)Construct an instance with the provided properties.- Parameters:
- message- A text message describing the reason.
- record- the consumer record.
- cause- the cause.
- Since:
- 2.7.2
 
 - 
ConversionExceptionpublic ConversionException(java.lang.String message, java.util.List<org.apache.kafka.clients.consumer.ConsumerRecord<?,?>> records, java.lang.Throwable cause)Construct an instance with the provided properties.- Parameters:
- message- A text message describing the reason.
- records- the consumer records.
- cause- the cause.
- Since:
- 2.7.2
 
 - 
ConversionExceptionpublic ConversionException(java.lang.String message, org.springframework.messaging.Message<?> msg, java.lang.Throwable cause)Construct an instance with the provided properties.- Parameters:
- message- A text message describing the reason.
- msg- a- Messageconverted from a consumer record.
- cause- the cause.
- Since:
- 2.7.2
 
 
- 
 - 
Method Detail- 
getRecord@Nullable public org.apache.kafka.clients.consumer.ConsumerRecord<?,?> getRecord() Return the consumer record, if available.- Returns:
- the record.
- Since:
- 2.7.2
 
 - 
getRecordspublic java.util.List<org.apache.kafka.clients.consumer.ConsumerRecord<?,?>> getRecords() Return the consumer record, if available.- Returns:
- the record.
- Since:
- 2.7.2
 
 - 
getMsg@Nullable public org.springframework.messaging.Message<?> getMsg() Return theMessage, if available.- Returns:
- the message.
- Since:
- 2.7.2
 
 
- 
 
-