Added in API level 29

PropertyTypeMismatchException


open class PropertyTypeMismatchException : RuntimeException
kotlin.Any
   ↳ kotlin.Throwable
   ↳ java.lang.Exception
   ↳ java.lang.RuntimeException
   ↳ android.view.inspector.PropertyReader.PropertyTypeMismatchException

Thrown if a client calls a typed read method for a property of a different type.

Summary

Public constructors
PropertyTypeMismatchException(id: Int, expectedPropertyType: String, actualPropertyType: String, propertyName: String?)

PropertyTypeMismatchException(id: Int, expectedPropertyType: String, actualPropertyType: String)

Public constructors

PropertyTypeMismatchException

Added in API level 29
PropertyTypeMismatchException(
    id: Int,
    expectedPropertyType: String,
    actualPropertyType: String,
    propertyName: String?)
Parameters
expectedPropertyType String: This value cannot be null.
actualPropertyType String: This value cannot be null.
propertyName String?: This value may be null.

PropertyTypeMismatchException

Added in API level 29
PropertyTypeMismatchException(
    id: Int,
    expectedPropertyType: String,
    actualPropertyType: String)
Parameters
expectedPropertyType String: This value cannot be null.
actualPropertyType String: This value cannot be null.