Class KafkaException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.kafka.KafkaException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BatchListenerFailedException, ConversionException, DeserializationException, KafkaBackoffException, KafkaProducerException, KafkaReplyTimeoutException, ListenerExecutionFailedException, NoProducerAvailableException, TimestampedException
public class KafkaException
extends org.springframework.core.NestedRuntimeException
The Spring for Apache Kafka specific
NestedRuntimeException implementation.- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionKafkaException(String message) Construct an instance with the provided properties.KafkaException(String message, @Nullable Throwable cause) Construct an instance with the provided properties.KafkaException(String message, KafkaException.Level level, @Nullable Throwable cause) Construct an instance with the provided properties. -
Method Summary
Methods 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
-
KafkaException
Construct an instance with the provided properties.- Parameters:
message- the message.
-
KafkaException
-
KafkaException
Construct an instance with the provided properties.- Parameters:
message- the message.level- the level at which this exception should be logged when usingselfLog(String, LogAccessor).cause- the cause.
-
-
Method Details
-
selfLog
Log this exception at its log level.- Parameters:
message- the message.logger- the log accessor.
-