# CompanionException

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

# CompanionException

*** ** * ** ***

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

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

`CompanionException`can be thrown during the companion system data transfer process.

## Summary