CronetException

public abstract class CronetException extends IOException

Known direct subclasses
CallbackException

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

NetworkException

Exception passed to UrlRequest.Callback.onFailed() when Cronet fails to process a network request.

Known indirect subclasses
QuicException

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


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

Summary

Protected constructors

CronetException(String message, Throwable cause)

Constructs an exception that is caused by cause.

Inherited methods

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

CronetException

protected CronetException(String message, Throwable cause)

Constructs an exception that is caused by cause.

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.