Class DeadlineTimeoutException

  • All Implemented Interfaces:
    java.io.Serializable

    public class DeadlineTimeoutException
    extends java.util.concurrent.TimeoutException
    A specialization of TimeoutException that carries a deadline and an actual value, both as UNIX times.
    Since:
    5.0
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private DeadlineTimeoutException​(Deadline deadline)
      Creates a new exception for the given timeout deadline and actual timeout.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static DeadlineTimeoutException from​(Deadline deadline)
      Creates a new exception for the given timeout deadline and actual timeout.
      Deadline getDeadline()
      The expected deadline for this timeout since the start of UNIX time.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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

      • DeadlineTimeoutException

        private DeadlineTimeoutException​(Deadline deadline)
        Creates a new exception for the given timeout deadline and actual timeout.
        Parameters:
        deadline - When was the deadline in UNIX time.
    • Method Detail

      • from

        public static DeadlineTimeoutException from​(Deadline deadline)
        Creates a new exception for the given timeout deadline and actual timeout.
        Parameters:
        deadline - When was the deadline in UNIX time.
        Returns:
        a new TimeoutValueException.
      • getDeadline

        public Deadline getDeadline()
        The expected deadline for this timeout since the start of UNIX time.
        Returns:
        The expected deadline for this timeout since the start of UNIX time.