QuicException

public abstract class QuicException extends NetworkException

java.lang.Object
   ↳ 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(String message, Throwable cause)

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

Public methods

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
static final int

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

static final int

Error code indicating the connection was closed unexpectedly.

static final int

Error code indicating the connection attempt was refused.

static final int

Error code indicating the connection was unexpectedly reset.

static final int

Error code indicating the connection attempt timed out.

static final int

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

static final int

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

static final int

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

static final int

Error code indicating another type of error was encountered.

static final int

Error code indicating an error related to the QUIC protocol.

static final int

Error code indicating a timeout expired.

Inherited methods

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
synchronized final void
synchronized Throwable
synchronized Throwable
String
String
StackTraceElement[]
synchronized final Throwable[]
synchronized Throwable
void
void
setStackTrace(StackTraceElement[] p)
String

Protected constructors

QuicException

protected QuicException(String message, Throwable cause)

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

Parameters
String message

explanation of failure.

Throwable cause

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 methods

getConnectionCloseSource

@ConnectionCloseSource
public int getConnectionCloseSource()

Returns the side responsible for terminating the QUIC connection.

getQuicDetailedErrorCode

public abstract int getQuicDetailedErrorCode()

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