Package io.getstream.exceptions
Class StreamTransportException
java.lang.Object
java.lang.Throwable
java.lang.Exception
io.getstream.exceptions.StreamException
io.getstream.exceptions.StreamTransportException
- All Implemented Interfaces:
Serializable
Thrown when a network-layer failure prevents the SDK from receiving an HTTP response. Carries an
getErrorType() string matching the logging spec ยง6.4 enum: connection_reset,
timeout, dns_failure, tls_handshake_failed, unknown.
The original transport error is preserved on the cause chain (Throwable.getCause()).
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.getstream.exceptions.StreamException
StreamException.ResponseData -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionStreamTransportException(String errorType, String message, Throwable cause) StreamTransportException(String errorType, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionstatic StreamTransportExceptionClassifies anIOExceptionfrom the HTTP client into one of theerrorTypeenum values.Methods inherited from class io.getstream.exceptions.StreamException
build, build, build, buildMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
CONNECTION_RESET
- See Also:
-
TIMEOUT
- See Also:
-
DNS_FAILURE
- See Also:
-
TLS_HANDSHAKE_FAILED
- See Also:
-
UNKNOWN
- See Also:
-
-
Constructor Details
-
StreamTransportException
-
StreamTransportException
-
-
Method Details
-
getErrorType
-
fromIOException
Classifies anIOExceptionfrom the HTTP client into one of theerrorTypeenum values. The OkHttp call-timeout path throwsInterruptedIOExceptionwith the message "timeout", so that is mapped toTIMEOUTalongsideSocketTimeoutException.
-