# KeyCharacterMap.UnavailableException

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

# UnavailableException

*** ** * ** ***

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

```
open class UnavailableException : AndroidRuntimeException
```

|---|---|---|---|---|--------------------------------------------------------------------------------------------------------------------------------------------------------|
| [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.util.AndroidRuntimeException](https://developer.android.com/reference/kotlin/android/util/AndroidRuntimeException.html#)                         ||
|   |   |   |   | ↳ | [android.view.KeyCharacterMap.UnavailableException](https://developer.android.com/reference/kotlin/android/view/KeyCharacterMap.UnavailableException#) |

Thrown by[KeyCharacterMap.load](https://developer.android.com/reference/kotlin/android/view/KeyCharacterMap#load(kotlin.Int))when a key character map could not be loaded.

## Summary

|                                                                                                                         Public constructors                                                                                                                          ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [UnavailableException](https://developer.android.com/reference/kotlin/android/view/KeyCharacterMap.UnavailableException#UnavailableException(kotlin.String))`(`msg:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` <br /> |

## Public constructors

### UnavailableException

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

```
UnavailableException(msg: String!)
```