InvalidPropertyException class
The error a BeanWrapper throws when a property path is malformed
(items[, address..city).
Such paths usually come from outside, as request parameter names.
DataBinder treats it like an unknown field: skipped while
ignoreUnknownFields is on, so hostile request keys cannot break
binding.
try {
BeanWrapper(person).setPropertyValue('items[', 'x');
} on InvalidPropertyException catch (e) {
log.warning(e.propertyName); // items[
}
Spring (Java):
} catch (InvalidPropertyException e) { ... }
- Inheritance
-
- Object
- BeansException
- InvalidPropertyException
Constructors
- InvalidPropertyException(String propertyName, String reason)
-
The path
propertyNameis malformed forreason.
Properties
- cause → Object?
-
The error that caused this one, if any: what a constructor threw, or
the container error of a nested bean.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
A human-readable description of the problem.
finalinherited
- mostSpecificCause → Object
-
rootCause, or this exception when it has no cause. Spring:
getMostSpecificCause().no setterinherited - propertyName → String
-
The malformed path.
final
- rootCause → Object?
-
The innermost cause: cause followed through nested container
errors, or
nullwithout a cause. Usually the error that really went wrong. Spring:getRootCause().no setterinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited