Class TransportError

All Implemented Interfaces:
Serializable

public final class TransportError extends CryptoServiceException
No usable answer arrived: the connection failed, an attempt or the overall deadline timed out, the calling thread was interrupted, or a 2xx body could not be decoded.

timedOut() tells a timeout from the other causes. The cause, when there is one, is the I/O exception the HTTP client raised; a decoding failure carries none, because the parser's message could quote the body.

See Also:
  • Method Details

    • timedOut

      public boolean timedOut()
      Whether a timeout ended the call: the per-attempt timeout or the overall deadline.
      Returns:
      true for a timeout