# OperationCanceledException

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

# OperationCanceledException

*** ** * ** ***

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

```
open class OperationCanceledException : RuntimeException
```

|---|---|---|---|--------------------------------------------------------------------------------------------------------------------------------|
| [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#)                                      |||
|   |   | ↳ | [java.lang.RuntimeException](https://developer.android.com/reference/kotlin/java/lang/RuntimeException.html#)                     ||
|   |   |   | ↳ | [android.os.OperationCanceledException](https://developer.android.com/reference/kotlin/android/os/OperationCanceledException#) |

An exception type that is thrown when an operation in progress is canceled.

## Summary

|                                                                                                                           Public constructors                                                                                                                            ||
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [OperationCanceledException](https://developer.android.com/reference/kotlin/android/os/OperationCanceledException#OperationCanceledException())`()` <br />                                                                                                            |
| [OperationCanceledException](https://developer.android.com/reference/kotlin/android/os/OperationCanceledException#OperationCanceledException(kotlin.String))`(`message:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` <br /> |

## Public constructors

### OperationCanceledException

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

```
OperationCanceledException()
```  

### OperationCanceledException

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

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