public abstract class**CronetException** extends IOException  

|---|---|---|
| Known Direct Subclasses [CallbackException](https://developer.android.com/develop/connectivity/cronet/reference/org/chromium/net/CallbackException.html),[NetworkException](https://developer.android.com/develop/connectivity/cronet/reference/org/chromium/net/NetworkException.html) |----------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [CallbackException](https://developer.android.com/develop/connectivity/cronet/reference/org/chromium/net/CallbackException.html) | Exception passed to[UrlRequest.Callback.onFailed()](https://developer.android.com/develop/connectivity/cronet/reference/org/chromium/net/UrlRequest.Callback.html#onFailed(org.chromium.net.UrlRequest,%20org.chromium.net.UrlResponseInfo,%20org.chromium.net.CronetException))when[UrlRequest.Callback](https://developer.android.com/develop/connectivity/cronet/reference/org/chromium/net/UrlRequest.Callback.html)or[UploadDataProvider](https://developer.android.com/develop/connectivity/cronet/reference/org/chromium/net/UploadDataProvider.html)method throws an exception. | | [NetworkException](https://developer.android.com/develop/connectivity/cronet/reference/org/chromium/net/NetworkException.html)   | Exception passed to[UrlRequest.Callback.onFailed()](https://developer.android.com/develop/connectivity/cronet/reference/org/chromium/net/UrlRequest.Callback.html#onFailed(org.chromium.net.UrlRequest,%20org.chromium.net.UrlResponseInfo,%20org.chromium.net.CronetException))when Cronet fails to process a network request.                                                                                                                                                                                                                                                         | |||

|---|---|---|
| Known Indirect Subclasses [QuicException](https://developer.android.com/develop/connectivity/cronet/reference/org/chromium/net/QuicException.html) |--------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [QuicException](https://developer.android.com/develop/connectivity/cronet/reference/org/chromium/net/QuicException.html) | Subclass of[NetworkException](https://developer.android.com/develop/connectivity/cronet/reference/org/chromium/net/NetworkException.html)which contains a detailed[QUIC](https://www.chromium.org/quic)error code from[QuicErrorCode](https://cs.chromium.org/search/?q=symbol:%5CbQuicErrorCode%5Cb). | |||

Base exception passed to[UrlRequest.Callback.onFailed()](https://developer.android.com/develop/connectivity/cronet/reference/org/chromium/net/UrlRequest.Callback.html#onFailed(org.chromium.net.UrlRequest,%20org.chromium.net.UrlResponseInfo,%20org.chromium.net.CronetException)).  

### Protected Constructor Summary

|---|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|   | [CronetException](https://developer.android.com/develop/connectivity/cronet/reference/org/chromium/net/CronetException.html#CronetException(java.lang.String,%20java.lang.Throwable))(String message, Throwable cause) Constructs an exception that is caused by`cause`. |

### 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**CronetException**(String message, Throwable cause)

Constructs an exception that is caused by`cause`.  

##### Parameters

| message |                                                                                                                       explanation of failure.                                                                                                                        |
|  cause  | the cause (which is saved for later retrieval by the[getCause()](https://developer.android.com/develop/connectivity/cronet/reference/java/lang/Throwable.html#getCause())method). A null value is permitted, and indicates that the cause is nonexistent or unknown. |
|---------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|