org.apache.hc.core5.util

## Class DeadlineTimeoutException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - java.util.concurrent.TimeoutException
      - - org.apache.hc.core5.util.DeadlineTimeoutException

- All Implemented Interfaces:
    Serializable

      public class DeadlineTimeoutException
      extends TimeoutException

  A specialization of `TimeoutException` that carries a deadline and an actual value, both as UNIX times.
  Since:
    5.0
  See Also:
    Serialized Form

- - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and 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`

- - ### 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.

Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.