Class TimestampedException

  • All Implemented Interfaces:
    java.io.Serializable

    public class TimestampedException
    extends KafkaException
    A KafkaException that records the timestamp of when it was thrown.
    Since:
    2.7
    Author:
    Tomaz Fernandes
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getTimestamp()  
      • Methods inherited from class org.springframework.core.NestedRuntimeException

        contains, getMessage, getMostSpecificCause, getRootCause
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • TimestampedException

        public TimestampedException​(java.lang.Exception ex,
                                    java.time.Clock clock)
      • TimestampedException

        public TimestampedException​(java.lang.Exception ex)
    • Method Detail

      • getTimestamp

        public long getTimestamp()