# OperationCanceledException

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

# OperationCanceledException

*** ** * ** ***

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

```
open class OperationCanceledException : 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.OperationCanceledException](https://developer.android.com/reference/kotlin/android/accounts/OperationCanceledException#) |

## Summary

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

## Public constructors

### OperationCanceledException

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

```
OperationCanceledException()
```  

### OperationCanceledException

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

```
OperationCanceledException(message: String!)
```  

### OperationCanceledException

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

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

### OperationCanceledException

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

```
OperationCanceledException(cause: Throwable!)
```