Added in API level 29

PropertyReader.PropertyTypeMismatchException


public static class PropertyReader.PropertyTypeMismatchException
extends RuntimeException

java.lang.Object
   ↳ java.lang.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(int id, String expectedPropertyType, String actualPropertyType, String propertyName)
PropertyTypeMismatchException(int id, String expectedPropertyType, String actualPropertyType)

Inherited methods

Public constructors

PropertyTypeMismatchException

Added in API level 29
public PropertyTypeMismatchException (int id, 
                String expectedPropertyType, 
                String actualPropertyType, 
                String propertyName)

Parameters
id int

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
public PropertyTypeMismatchException (int id, 
                String expectedPropertyType, 
                String actualPropertyType)

Parameters
id int

expectedPropertyType String: This value cannot be null.

actualPropertyType String: This value cannot be null.