Class TimestampedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.springframework.core.NestedRuntimeException
-
- org.springframework.kafka.KafkaException
-
- org.springframework.kafka.listener.TimestampedException
-
- All Implemented Interfaces:
java.io.Serializable
public class TimestampedException extends KafkaException
AKafkaException
that records the timestamp of when it was thrown.- Since:
- 2.7
- Author:
- Tomaz Fernandes
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.springframework.kafka.KafkaException
KafkaException.Level
-
-
Constructor Summary
Constructors Constructor Description TimestampedException(java.lang.Exception ex)
TimestampedException(java.lang.Exception ex, java.time.Clock clock)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getTimestamp()
-
Methods inherited from class org.springframework.kafka.KafkaException
selfLog
-
Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
-
-