Class TimestampedException

    • Constructor Summary

      Constructors 
      Constructor Description
      TimestampedException​(java.lang.Exception ex)
      Constructs an instance with the provided cause and the current time.
      TimestampedException​(java.lang.Exception ex, long timestamp)
      Creates an instance with the timestamp of when it was thrown and its cause.
      TimestampedException​(java.lang.Exception ex, java.time.Clock clock)
      Deprecated.
      TimestampedException​(java.lang.Exception ex, java.time.Instant now)
      Creates an instance with the Instant of when it was thrown and its cause.
    • 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

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

        public TimestampedException​(java.lang.Exception ex)
        Constructs an instance with the provided cause and the current time.
        Parameters:
        ex - the exception cause.
      • TimestampedException

        public TimestampedException​(java.lang.Exception ex,
                                    long timestamp)
        Creates an instance with the timestamp of when it was thrown and its cause.
        Parameters:
        ex - the exception cause.
        timestamp - the millis from epoch of when the exception was thrown.
        Since:
        2.7.13
      • TimestampedException

        public TimestampedException​(java.lang.Exception ex,
                                    java.time.Instant now)
        Creates an instance with the Instant of when it was thrown and its cause.
        Parameters:
        ex - the exception cause.
        now - the Instant of when the exception was thrown.
        Since:
        2.7.13
    • Method Detail

      • getTimestamp

        public long getTimestamp()