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:
Serializable
-
Nested Class Summary
Nested classes/interfaces inherited from class KafkaException
KafkaException.Level -
Constructor Summary
ConstructorsConstructorDescriptionConversionException(String message, @Nullable Throwable cause) Construct an instance with the provided properties.ConversionException(String message, List<org.apache.kafka.clients.consumer.ConsumerRecord<?, ?>> records, Throwable cause) Construct an instance with the provided properties.ConversionException(String message, org.apache.kafka.clients.consumer.ConsumerRecord<?, ?> record, Throwable cause) Construct an instance with the provided properties.ConversionException(String message, org.springframework.messaging.Message<?> msg, Throwable cause) Construct an instance with the provided properties. -
Method Summary
Modifier and TypeMethodDescription@Nullable org.springframework.messaging.Message<?> getMsg()Return theMessage, if available.@Nullable org.apache.kafka.clients.consumer.ConsumerRecord<?, ?> Return the consumer record, if available.List<org.apache.kafka.clients.consumer.ConsumerRecord<?, ?>> Return the consumer record, if available.Methods inherited from class KafkaException
selfLogMethods inherited from class org.springframework.core.NestedRuntimeException
contains, getMostSpecificCause, getRootCauseMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ConversionException
-
ConversionException
-
ConversionException
public ConversionException(String message, List<org.apache.kafka.clients.consumer.ConsumerRecord<?, ?>> records, 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
-
ConversionException
-
-
Method Details
-
getRecord
public @Nullable org.apache.kafka.clients.consumer.ConsumerRecord<?,?> getRecord()Return the consumer record, if available.- Returns:
- the record.
- Since:
- 2.7.2
-
getRecords
Return the consumer record, if available.- Returns:
- the record.
- Since:
- 2.7.2
-
getMsg
public @Nullable org.springframework.messaging.Message<?> getMsg()Return theMessage, if available.- Returns:
- the message.
- Since:
- 2.7.2
-