类 NotWritablePropertyException

    • 构造器详细资料

      • NotWritablePropertyException

        public NotWritablePropertyException​(Class<?> beanClass,
                                            String propertyName)
        Create a new NotWritablePropertyException.
        参数:
        beanClass - the offending bean class
        propertyName - the offending property name
      • NotWritablePropertyException

        public NotWritablePropertyException​(Class<?> beanClass,
                                            String propertyName,
                                            String msg)
        Create a new NotWritablePropertyException.
        参数:
        beanClass - the offending bean class
        propertyName - the offending property name
        msg - the detail message
      • NotWritablePropertyException

        public NotWritablePropertyException​(Class<?> beanClass,
                                            String propertyName,
                                            String msg,
                                            Throwable cause)
        Create a new NotWritablePropertyException.
        参数:
        beanClass - the offending bean class
        propertyName - the offending property name
        msg - the detail message
        cause - the root cause
      • NotWritablePropertyException

        public NotWritablePropertyException​(Class<?> beanClass,
                                            String propertyName,
                                            String msg,
                                            String[] possibleMatches)
        Create a new NotWritablePropertyException.
        参数:
        beanClass - the offending bean class
        propertyName - the offending property name
        msg - the detail message
        possibleMatches - suggestions for actual bean property names that closely match the invalid property name
    • 方法详细资料

      • getPossibleMatches

        public String[] getPossibleMatches()
        Return suggestions for actual bean property names that closely match the invalid property name, if any.