public class KafkaException
extends org.springframework.core.NestedRuntimeException
NestedRuntimeException
implementation.Modifier and Type | Class and Description |
---|---|
static class |
KafkaException.Level
The log level for
KafkaException . |
Constructor and Description |
---|
KafkaException(java.lang.String message)
Construct an instance with the provided properties.
|
KafkaException(java.lang.String message,
KafkaException.Level level,
java.lang.Throwable cause)
Construct an instance with the provided properties.
|
KafkaException(java.lang.String message,
java.lang.Throwable cause)
Construct an instance with the provided properties.
|
Modifier and Type | Method and Description |
---|---|
void |
selfLog(java.lang.String message,
org.springframework.core.log.LogAccessor logger)
Log this exception at its log level.
|
contains, getMessage, getMostSpecificCause, getRootCause
public KafkaException(java.lang.String message)
message
- the message.public KafkaException(java.lang.String message, @Nullable java.lang.Throwable cause)
message
- the message.cause
- the cause.public KafkaException(java.lang.String message, KafkaException.Level level, @Nullable java.lang.Throwable cause)
message
- the message.level
- the level at which this exception should be logged when using
selfLog(String, LogAccessor)
.cause
- the cause.