# TelephonyManager.ModemErrorException

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

# ModemErrorException

*** ** * ** ***

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

```
open class ModemErrorException : TelephonyManager.NetworkSlicingException
```

|---|---|---|---|------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [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.telephony.TelephonyManager.NetworkSlicingException](https://developer.android.com/reference/kotlin/android/telephony/TelephonyManager.NetworkSlicingException) ||
|   |   |   | ↳ | [android.telephony.TelephonyManager.ModemErrorException](https://developer.android.com/reference/kotlin/android/telephony/TelephonyManager.ModemErrorException#) |

Exception that is supplied to the callback in[getNetworkSlicingConfiguration](https://developer.android.com/reference/kotlin/android/telephony/TelephonyManager#getNetworkSlicingConfiguration(java.util.concurrent.Executor,%20android.os.OutcomeReceiver))if the modem returned a failure.

## Summary

| Inherited functions ||
|---|---|
| From class[NetworkSlicingException](https://developer.android.com/reference/kotlin/android/telephony/TelephonyManager.NetworkSlicingException) |----------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------| | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [toString](https://developer.android.com/reference/kotlin/android/telephony/TelephonyManager.NetworkSlicingException#toString())`()` <br /> | ||