QuicException

abstract class QuicException : NetworkException

kotlin.Any
   ↳ kotlin.Throwable
     ↳ java.lang.Exception
       ↳ java.io.IOException
         ↳ org.chromium.net.CronetException
           ↳ org.chromium.net.NetworkException
             ↳ org.chromium.net.QuicException

Subclass of NetworkException which contains a detailed QUIC error code from QuicErrorCode. An instance of QuicException is passed to onFailed callbacks when the error code is NetworkException.ERROR_QUIC_PROTOCOL_FAILED.

Summary

Protected constructors

QuicException(message: String!, cause: Throwable!)

Constructs an exception that is caused by a QUIC protocol error.

Public functions

Int

Returns the side responsible for terminating the QUIC connection.

abstract Int

Returns the QUIC error code, which is a value from QuicErrorCode.

Inherited Constants

From org.chromium.net.NetworkException
const Int

Error code indicating the IP address being contacted is unreachable, meaning there is no route to the specified host or network.

const Int

Error code indicating the connection was closed unexpectedly.

const Int

Error code indicating the connection attempt was refused.

const Int

Error code indicating the connection was unexpectedly reset.

const Int

Error code indicating the connection attempt timed out.

const Int

Error code indicating the host being sent the request could not be resolved to an IP address.

const Int

Error code indicating the device was not connected to any network.

const Int

Error code indicating that as the request was processed the network configuration changed.

const Int

Error code indicating another type of error was encountered.

const Int

Error code indicating an error related to the QUIC protocol.

const Int

Error code indicating a timeout expired.

Inherited functions

From org.chromium.net.NetworkException
abstract Int

Returns a Cronet internal error code.

abstract Int

Returns error code, one of ERROR_*.

abstract Boolean

Returns true if retrying this request right away might succeed, false otherwise.

From java.lang.Throwable

Protected constructors

QuicException

protected QuicException(message: String!, cause: Throwable!)

Constructs an exception that is caused by a QUIC protocol error.

Parameters
message: String!

explanation of failure.

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.

Public functions

getConnectionCloseSource

@ConnectionCloseSource
fun getConnectionCloseSource(): Int

Returns the side responsible for terminating the QUIC connection.

getQuicDetailedErrorCode

abstract fun getQuicDetailedErrorCode(): Int

Returns the QUIC error code, which is a value from QuicErrorCode.