类的使用
org.springframework.beans.PropertyAccessException
使用PropertyAccessException的程序包 程序包 说明 org.springframework.beans This package contains interfaces and classes for manipulating Java beans.org.springframework.validation Provides data binding and validation functionality, for usage in business and/or UI layers.org.springframework.web.method.annotation Support classes for annotation-based handler method processing.org.springframework.beans中PropertyAccessException的使用
org.springframework.beans中PropertyAccessException的子类 修饰符和类型 类 说明 class
ConversionNotSupportedException
Exception thrown when no suitable editor or converter can be found for a bean property.class
MethodInvocationException
Thrown when a bean property getter or setter method throws an exception, analogous to an InvocationTargetException.class
TypeMismatchException
Exception thrown on a type mismatch when trying to set a bean property.返回PropertyAccessException的org.springframework.beans中的方法 修饰符和类型 方法 说明 PropertyAccessException
PropertyBatchUpdateException. getPropertyAccessException(String propertyName)
Return the exception for this field, ornull
if there isn't any.PropertyAccessException[]
PropertyBatchUpdateException. getPropertyAccessExceptions()
Return an array of the propertyAccessExceptions stored in this object.参数类型为PropertyAccessException的org.springframework.beans中的构造器 构造器 说明 PropertyBatchUpdateException(PropertyAccessException[] propertyAccessExceptions)
Create a new PropertyBatchUpdateException.org.springframework.validation中PropertyAccessException的使用
参数类型为PropertyAccessException的org.springframework.validation中的方法 修饰符和类型 方法 说明 void
BindingErrorProcessor. processPropertyAccessException(PropertyAccessException ex, BindingResult bindingResult)
Translate the givenPropertyAccessException
to an appropriate error registered on the givenErrors
instance.void
DefaultBindingErrorProcessor. processPropertyAccessException(PropertyAccessException ex, BindingResult bindingResult)
org.springframework.web.method.annotation中PropertyAccessException的使用
org.springframework.web.method.annotation中PropertyAccessException的子类 修饰符和类型 类 说明 class
MethodArgumentConversionNotSupportedException
A ConversionNotSupportedException raised while resolving a method argument.class
MethodArgumentTypeMismatchException
A TypeMismatchException raised while resolving a controller method argument.