# NetworkErrorException

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# NetworkErrorException

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/accounts/NetworkErrorException "View this page in Java")  

```
open class NetworkErrorException : AccountsException
```

|---|---|---|---|----------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                            |||||
| ↳ | [kotlin.Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)                                             ||||
|   | ↳ | [java.lang.Exception](https://developer.android.com/reference/kotlin/java/lang/Exception.html#)                                        |||
|   |   | ↳ | [android.accounts.AccountsException](https://developer.android.com/reference/kotlin/android/accounts/AccountsException)             ||
|   |   |   | ↳ | [android.accounts.NetworkErrorException](https://developer.android.com/reference/kotlin/android/accounts/NetworkErrorException#) |

## Summary

|                                                                                                                                                                                   Public constructors                                                                                                                                                                                   ||
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [NetworkErrorException](https://developer.android.com/reference/kotlin/android/accounts/NetworkErrorException#NetworkErrorException())`()` <br />                                                                                                                                                                                                                                    |
| [NetworkErrorException](https://developer.android.com/reference/kotlin/android/accounts/NetworkErrorException#NetworkErrorException(kotlin.String))`(`message:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` <br />                                                                                                                         |
| [NetworkErrorException](https://developer.android.com/reference/kotlin/android/accounts/NetworkErrorException#NetworkErrorException(kotlin.String,%20kotlin.Throwable))`(`message:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`, `cause:` `[Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)!`)` <br /> |
| [NetworkErrorException](https://developer.android.com/reference/kotlin/android/accounts/NetworkErrorException#NetworkErrorException(kotlin.Throwable))`(`cause:` `[Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)!`)` <br />                                                                                                                  |

## Public constructors

### NetworkErrorException

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
NetworkErrorException()
```  

### NetworkErrorException

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
NetworkErrorException(message: String!)
```  

### NetworkErrorException

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
NetworkErrorException(
    message: String!, 
    cause: Throwable!)
```  

### NetworkErrorException

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
NetworkErrorException(cause: Throwable!)
```