# IllegalChannelGroupException

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

# IllegalChannelGroupException

```
open class IllegalChannelGroupException : IllegalArgumentException
```

|---|---|---|---|---|--------------------------------------------------------------------------------------------------------------------------------------------------|
| [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#)                                          |||
|   |   |   | ↳ | [java.lang.IllegalArgumentException](https://developer.android.com/reference/kotlin/java/lang/IllegalArgumentException.html#)                       ||
|   |   |   |   | ↳ | [java.nio.channels.IllegalChannelGroupException](https://developer.android.com/reference/kotlin/java/nio/channels/IllegalChannelGroupException#) |

Unchecked exception thrown when an attempt is made to open a channel in a group that was not created by the same provider.

## Summary

|                                                                                            Public constructors                                                                                            ||
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [IllegalChannelGroupException](https://developer.android.com/reference/kotlin/java/nio/channels/IllegalChannelGroupException#IllegalChannelGroupException())`()` Constructs an instance of this class. |

## Public constructors

### IllegalChannelGroupException

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

```
IllegalChannelGroupException()
```

Constructs an instance of this class.