# PropertyMapper.PropertyConflictException

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

# PropertyConflictException

*** ** * ** ***

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

```
open class PropertyConflictException : 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.view.inspector.PropertyMapper.PropertyConflictException](https://developer.android.com/reference/kotlin/android/view/inspector/PropertyMapper.PropertyConflictException#) |

Thrown from a map method if a property name is already mapped as different type.

## Summary

|                                                                                                                                                                                                                                                                Public constructors                                                                                                                                                                                                                                                                ||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [PropertyConflictException](https://developer.android.com/reference/kotlin/android/view/inspector/PropertyMapper.PropertyConflictException#PropertyConflictException(kotlin.String,%20kotlin.String,%20kotlin.String))`(`name:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, `newPropertyType:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, `existingPropertyType:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`)` <br /> |

## Public constructors

### PropertyConflictException

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

```
PropertyConflictException(
    name: String, 
    newPropertyType: String, 
    existingPropertyType: String)
```

|                                                              Parameters                                                              ||
|------------------------|--------------------------------------------------------------------------------------------------------------|
| `name`                 | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html):This value cannot be`null`. |
| `newPropertyType`      | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html):This value cannot be`null`. |
| `existingPropertyType` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html):This value cannot be`null`. |