QuicException
Stay organized with collections
Save and categorize content based on your preferences.
Inherited Constant Summary
Protected Constructor Summary
|
QuicException(String message, Throwable cause)
Constructs an exception that is caused by a QUIC protocol error.
|
Inherited Method Summary
From class
java.lang.Throwable
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()
|
From class
java.lang.Object
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
()
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2023-10-26 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-10-26 UTC."],[],[],null,["# QuicException\n\npublic abstract class **QuicException** extends [NetworkException](../../../../reference/org/chromium/net/NetworkException.html) \nSubclass of [NetworkException](../../../../reference/org/chromium/net/NetworkException.html) which contains a detailed\n[QUIC](https://www.chromium.org/quic) error code from [QuicErrorCode](https://cs.chromium.org/search/?q=symbol:%5CbQuicErrorCode%5Cb). An\ninstance of `QuicException` is passed to `onFailed` callbacks when the error code is\n[NetworkException.ERROR_QUIC_PROTOCOL_FAILED](../../../../reference/org/chromium/net/NetworkException.html#ERROR_QUIC_PROTOCOL_FAILED). \n\n### Inherited Constant Summary\n\nFrom class [org.chromium.net.NetworkException](../../../../reference/org/chromium/net/NetworkException.html) \n\n|-----|-------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------|\n| int | [ERROR_ADDRESS_UNREACHABLE](../../../../reference/org/chromium/net/NetworkException.html#ERROR_ADDRESS_UNREACHABLE) | Error code indicating the IP address being contacted is unreachable, meaning there is no route to the specified host or network. |\n| int | [ERROR_CONNECTION_CLOSED](../../../../reference/org/chromium/net/NetworkException.html#ERROR_CONNECTION_CLOSED) | Error code indicating the connection was closed unexpectedly. |\n| int | [ERROR_CONNECTION_REFUSED](../../../../reference/org/chromium/net/NetworkException.html#ERROR_CONNECTION_REFUSED) | Error code indicating the connection attempt was refused. |\n| int | [ERROR_CONNECTION_RESET](../../../../reference/org/chromium/net/NetworkException.html#ERROR_CONNECTION_RESET) | Error code indicating the connection was unexpectedly reset. |\n| int | [ERROR_CONNECTION_TIMED_OUT](../../../../reference/org/chromium/net/NetworkException.html#ERROR_CONNECTION_TIMED_OUT) | Error code indicating the connection attempt timed out. |\n| int | [ERROR_HOSTNAME_NOT_RESOLVED](../../../../reference/org/chromium/net/NetworkException.html#ERROR_HOSTNAME_NOT_RESOLVED) | Error code indicating the host being sent the request could not be resolved to an IP address. |\n| int | [ERROR_INTERNET_DISCONNECTED](../../../../reference/org/chromium/net/NetworkException.html#ERROR_INTERNET_DISCONNECTED) | Error code indicating the device was not connected to any network. |\n| int | [ERROR_NETWORK_CHANGED](../../../../reference/org/chromium/net/NetworkException.html#ERROR_NETWORK_CHANGED) | Error code indicating that as the request was processed the network configuration changed. |\n| int | [ERROR_OTHER](../../../../reference/org/chromium/net/NetworkException.html#ERROR_OTHER) | Error code indicating another type of error was encountered. |\n| int | [ERROR_QUIC_PROTOCOL_FAILED](../../../../reference/org/chromium/net/NetworkException.html#ERROR_QUIC_PROTOCOL_FAILED) | Error code indicating an error related to the [QUIC](https://www.chromium.org/quic) protocol. |\n| int | [ERROR_TIMED_OUT](../../../../reference/org/chromium/net/NetworkException.html#ERROR_TIMED_OUT) | Error code indicating a timeout expired. |\n\n### Protected Constructor Summary\n\n|---|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| | [QuicException](../../../../reference/org/chromium/net/QuicException.html#QuicException(java.lang.String,%20java.lang.Throwable))(String message, Throwable cause) Constructs an exception that is caused by a QUIC protocol error. |\n\n### Public Method Summary\n\n|--------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract int | [getQuicDetailedErrorCode](../../../../reference/org/chromium/net/QuicException.html#getQuicDetailedErrorCode())() Returns the [QUIC](https://www.chromium.org/quic) error code, which is a value from [QuicErrorCode](https://cs.chromium.org/search/?q=symbol:%5CbQuicErrorCode%5Cb). |\n\n### Inherited Method Summary\n\nFrom class [org.chromium.net.NetworkException](../../../../reference/org/chromium/net/NetworkException.html) \n\n|------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract int | [getCronetInternalErrorCode](../../../../reference/org/chromium/net/NetworkException.html#getCronetInternalErrorCode())() Returns a Cronet internal error code. |\n| abstract int | [getErrorCode](../../../../reference/org/chromium/net/NetworkException.html#getErrorCode())() Returns error code, one of [ERROR_*](../../../../reference/org/chromium/net/NetworkException.html#ERROR_HOSTNAME_NOT_RESOLVED). |\n| abstract boolean | [immediatelyRetryable](../../../../reference/org/chromium/net/NetworkException.html#immediatelyRetryable())() Returns `true` if retrying this request right away might succeed, `false` otherwise. |\n\nFrom class java.lang.Throwable \n\n|----------------------------------|-------------------------------------------|\n| synchronized final void | addSuppressed(Throwable arg0) |\n| synchronized Throwable | fillInStackTrace() |\n| synchronized Throwable | getCause() |\n| String | getLocalizedMessage() |\n| String | getMessage() |\n| StackTraceElement\\[\\] | getStackTrace() |\n| synchronized final Throwable\\[\\] | getSuppressed() |\n| synchronized Throwable | initCause(Throwable arg0) |\n| void | printStackTrace() |\n| void | printStackTrace(PrintWriter arg0) |\n| void | printStackTrace(PrintStream arg0) |\n| void | setStackTrace(StackTraceElement\\[\\] arg0) |\n| String | toString() |\n\nFrom class java.lang.Object \n\n|------------------|---------------------------|\n| Object | clone() |\n| boolean | equals(Object arg0) |\n| void | finalize() |\n| final Class\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| String | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nProtected Constructors\n----------------------\n\n#### protected\n**QuicException**\n(String message, Throwable cause)\n\nConstructs an exception that is caused by a QUIC protocol error. \n\n##### Parameters\n\n| message | explanation of failure. |\n| cause | the cause (which is saved for later retrieval by the [getCause()](../../../../reference/java/lang/Throwable.html#getCause()) method). A null value is permitted, and indicates that the cause is nonexistent or unknown. |\n|---------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n\nPublic Methods\n--------------\n\n#### public abstract int\n**getQuicDetailedErrorCode**\n()\n\nReturns the [QUIC](https://www.chromium.org/quic) error code, which is a value\nfrom [QuicErrorCode](https://cs.chromium.org/search/?q=symbol:%5CbQuicErrorCode%5Cb)."]]