# Resources.NotFoundException

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

# NotFoundException

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/content/res/Resources.NotFoundException "View this page in Java")  

```
open class NotFoundException : RuntimeException
```

|---|---|---|---|----------------------------------------------------------------------------------------------------------------------------------------------------|
| [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.content.res.Resources.NotFoundException](https://developer.android.com/reference/kotlin/android/content/res/Resources.NotFoundException#) |

This exception is thrown by the resource APIs when a requested resource can not be found.

## Summary

|                                                                                                                                                                                   Public constructors                                                                                                                                                                                   ||
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [NotFoundException](https://developer.android.com/reference/kotlin/android/content/res/Resources.NotFoundException#NotFoundException())`()` <br />                                                                                                                                                                                                                                   |
| [NotFoundException](https://developer.android.com/reference/kotlin/android/content/res/Resources.NotFoundException#NotFoundException(kotlin.String))`(`name:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` <br />                                                                                                                           |
| [NotFoundException](https://developer.android.com/reference/kotlin/android/content/res/Resources.NotFoundException#NotFoundException(kotlin.String,%20java.lang.Exception))`(`name:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`, `cause:` `[Exception](https://developer.android.com/reference/kotlin/java/lang/Exception.html#)!`)` <br /> |

## Public constructors

### NotFoundException

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

```
NotFoundException()
```  

### NotFoundException

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

```
NotFoundException(name: String!)
```  

### NotFoundException

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

```
NotFoundException(
    name: String!, 
    cause: Exception!)
```