# NoSuchFieldException

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

# NoSuchFieldException

```
open class NoSuchFieldException : ReflectiveOperationException
```

|---|---|---|---|------------------------------------------------------------------------------------------------------------------|
| [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)                              |||
|   |   | ↳ | [java.lang.ReflectiveOperationException](https://developer.android.com/reference/kotlin/java/lang/ReflectiveOperationException) ||
|   |   |   | ↳ | [java.lang.NoSuchFieldException](https://developer.android.com/reference/kotlin/java/lang/NoSuchFieldException#) |

Signals that the class doesn't have a field of a specified name.

## Summary

|                                                                                                                             Public constructors                                                                                                                             ||
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [NoSuchFieldException](https://developer.android.com/reference/kotlin/java/lang/NoSuchFieldException#NoSuchFieldException())`()` Constructor.                                                                                                                            |
| [NoSuchFieldException](https://developer.android.com/reference/kotlin/java/lang/NoSuchFieldException#NoSuchFieldException(kotlin.String))`(`s:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Constructor with a detail message. |

## Public constructors

### NoSuchFieldException

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

```
NoSuchFieldException()
```

Constructor.  

### NoSuchFieldException

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

```
NoSuchFieldException(s: String!)
```

Constructor with a detail message.

|                                                Parameters                                                 ||
|-----|------------------------------------------------------------------------------------------------------|
| `s` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!:the detail message |