# TelephonyManager.NetworkSlicingException

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

# NetworkSlicingException

*** ** * ** ***

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

```
open class NetworkSlicingException : Exception
```

|---|---|---|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [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#) |

|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Known Direct Subclasses [TelephonyManager.ModemErrorException](https://developer.android.com/reference/kotlin/android/telephony/TelephonyManager.ModemErrorException),[TelephonyManager.TimeoutException](https://developer.android.com/reference/kotlin/android/telephony/TelephonyManager.TimeoutException) |-----------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [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.                               | | [TelephonyManager.TimeoutException](https://developer.android.com/reference/kotlin/android/telephony/TelephonyManager.TimeoutException)       | 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 system timed out waiting for a response from the Radio. | |

Exception that may be supplied to the callback in[getNetworkSlicingConfiguration](https://developer.android.com/reference/kotlin/android/telephony/TelephonyManager#getNetworkSlicingConfiguration(java.util.concurrent.Executor,%20android.os.OutcomeReceiver))if something goes awry.

## Summary

|                                                                                                          Public methods                                                                                                           ||
|--------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------|
| open[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 /> |

## Public methods

### toString

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

```
open fun toString(): String
```

|                                                            Return                                                            ||
|----------------------------------------------------------------------------------|--------------------------------------------|
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | a string representation of this throwable. |