public abstract class
QuicException
extends NetworkException
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
.
Inherited Constant Summary
int | ERROR_ADDRESS_UNREACHABLE | Error code indicating the IP address being contacted is unreachable, meaning there is no route to the specified host or network. |
int | ERROR_CONNECTION_CLOSED | Error code indicating the connection was closed unexpectedly. |
int | ERROR_CONNECTION_REFUSED | Error code indicating the connection attempt was refused. |
int | ERROR_CONNECTION_RESET | Error code indicating the connection was unexpectedly reset. |
int | ERROR_CONNECTION_TIMED_OUT | Error code indicating the connection attempt timed out. |
int | ERROR_HOSTNAME_NOT_RESOLVED | Error code indicating the host being sent the request could not be resolved to an IP address. |
int | ERROR_INTERNET_DISCONNECTED | Error code indicating the device was not connected to any network. |
int | ERROR_NETWORK_CHANGED | Error code indicating that as the request was processed the network configuration changed. |
int | ERROR_OTHER | Error code indicating another type of error was encountered. |
int | ERROR_QUIC_PROTOCOL_FAILED | Error code indicating an error related to the QUIC protocol. |
int | ERROR_TIMED_OUT | Error code indicating a timeout expired. |
Protected Constructor Summary
QuicException(String message, Throwable cause)
Constructs an exception that is caused by a QUIC protocol error.
|
Public Method Summary
abstract int |
getQuicDetailedErrorCode()
Returns the QUIC error code, which is a value
from
QuicErrorCode.
|
Inherited Method Summary
abstract int |
getCronetInternalErrorCode()
Returns a Cronet internal error code.
|
abstract int |
getErrorCode()
Returns error code, one of
ERROR_* . |
abstract boolean |
immediatelyRetryable()
Returns
true if retrying this request right away might succeed, false
otherwise. |
synchronized final void |
addSuppressed(Throwable arg0)
|
synchronized Throwable |
fillInStackTrace()
|
synchronized Throwable |
getCause()
|
String |
getLocalizedMessage()
|
String |
getMessage()
|
StackTraceElement[] |
getStackTrace()
|
synchronized final Throwable[] |
getSuppressed()
|
synchronized Throwable |
initCause(Throwable arg0)
|
void |
printStackTrace()
|
void |
printStackTrace(PrintWriter arg0)
|
void |
printStackTrace(PrintStream arg0)
|
void |
setStackTrace(StackTraceElement[] arg0)
|
String |
toString()
|
Object |
clone()
|
boolean |
equals(Object arg0)
|
void |
finalize()
|
final Class<?> |
getClass()
|
int |
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
String |
toString()
|
final void |
wait(long arg0, int arg1)
|
final void |
wait(long arg0)
|
final void |
wait()
|
Protected Constructors
protected QuicException (String message, Throwable cause)
Constructs an exception that is caused by a QUIC protocol error.
Parameters
message | explanation of failure. |
---|---|
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
public abstract int getQuicDetailedErrorCode ()
Returns the QUIC error code, which is a value from QuicErrorCode.