Package co.cryptoservice.sdk
Class TransportError
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
co.cryptoservice.sdk.CryptoServiceException
co.cryptoservice.sdk.TransportError
- All Implemented Interfaces:
Serializable
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 Summary
Modifier and TypeMethodDescriptionbooleantimedOut()Whether a timeout ended the call: the per-attempt timeout or the overall deadline.Methods inherited from class co.cryptoservice.sdk.CryptoServiceException
method, pathMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
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
-