HttpException


open class HttpException : IOException
CallbackException

Exception passed to UrlRequest.Callback.onFailed() when UrlRequest.Callback or UploadDataProvider method throws an exception.

NetworkException

Exception passed to UrlRequest.Callback.onFailed() when the HTTP stack fails to process a network request.

QuicException

Subclass of NetworkException which contains a detailed QUIC error code from QuicErrorCode.

Base exception passed to UrlRequest.Callback.onFailed().

Summary

Public constructors
HttpException(message: String?, cause: Throwable?)

Constructs an exception that is caused by cause.

Public constructors

HttpException

HttpException(
    message: String?,
    cause: Throwable?)

Constructs an exception that is caused by cause.

Parameters
message String?: explanation of failure. This value may be null.
cause Throwable?: the cause (which is saved for later retrieval by the getCause() method). A null value is permitted, and indicates that the cause is nonexistent or unknown.