# DeviceNotAssociatedException

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

# DeviceNotAssociatedException

*** ** * ** ***

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

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

An exception for a case when a given device was not android.companion.CompanionDeviceManager#associate to the calling app.

## Summary