# IpSecManager.ResourceUnavailableException

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

# ResourceUnavailableException

*** ** * ** ***

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

```
class ResourceUnavailableException : AndroidException
```

|---|---|---|---|----------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [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.util.AndroidException](https://developer.android.com/reference/kotlin/android/util/AndroidException.html#)                                               ||
|   |   |   | ↳ | [android.net.IpSecManager.ResourceUnavailableException](https://developer.android.com/reference/kotlin/android/net/IpSecManager.ResourceUnavailableException#) |

Thrown to indicate that an IPsec resource is unavailable.

This could apply to resources such as sockets,[SecurityParameterIndex](https://developer.android.com/reference/kotlin/android/net/IpSecManager.SecurityParameterIndex),[IpSecTransform](https://developer.android.com/reference/kotlin/android/net/IpSecTransform), or other system resources. If this exception is thrown, users should release allocated objects of the type requested.

## Summary