类 PropertyBatchUpdateException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- java.lang.RuntimeException
- org.springframework.core.NestedRuntimeException
- org.springframework.beans.BeansException
- org.springframework.beans.PropertyBatchUpdateException
- 所有已实现的接口:
Serializable
public class PropertyBatchUpdateException extends BeansException
Combined exception, composed of individual PropertyAccessException instances. An object of this class is created at the beginning of the binding process, and errors added to it as necessary.The binding process continues when it encounters application-level PropertyAccessExceptions, applying those changes that can be applied and storing rejected changes in an object of this class.
- 从以下版本开始:
- 18 April 2001
- 作者:
- Rod Johnson, Juergen Hoeller
- 另请参阅:
- 序列化表格
构造器概要
构造器 构造器 说明 PropertyBatchUpdateException(PropertyAccessException[] propertyAccessExceptions)
Create a new PropertyBatchUpdateException.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 boolean
contains(Class<?> exType)
Check whether this exception contains an exception of the given type: either it is of the given class itself or it contains a nested cause of the given type.int
getExceptionCount()
If this returns 0, no errors were encountered during binding.String
getMessage()
Return the detail message, including the message from the nested exception if there is one.PropertyAccessException
getPropertyAccessException(String propertyName)
Return the exception for this field, ornull
if there isn't any.PropertyAccessException[]
getPropertyAccessExceptions()
Return an array of the propertyAccessExceptions stored in this object.void
printStackTrace(PrintStream ps)
void
printStackTrace(PrintWriter pw)
String
toString()
从类继承的方法 org.springframework.beans.BeansException
equals, hashCode
从类继承的方法 org.springframework.core.NestedRuntimeException
getMostSpecificCause, getRootCause
从类继承的方法 java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace
构造器详细资料
PropertyBatchUpdateException
public PropertyBatchUpdateException(PropertyAccessException[] propertyAccessExceptions)
Create a new PropertyBatchUpdateException.- 参数:
propertyAccessExceptions
- the List of PropertyAccessExceptions
方法详细资料
getExceptionCount
public final int getExceptionCount()
If this returns 0, no errors were encountered during binding.
getPropertyAccessExceptions
public final PropertyAccessException[] getPropertyAccessExceptions()
Return an array of the propertyAccessExceptions stored in this object.Will return the empty array (not
null
) if there were no errors.
getPropertyAccessException
public PropertyAccessException getPropertyAccessException(String propertyName)
Return the exception for this field, ornull
if there isn't any.
getMessage
public String getMessage()
从类复制的说明:NestedRuntimeException
Return the detail message, including the message from the nested exception if there is one.- 覆盖:
getMessage
在类中NestedRuntimeException
printStackTrace
public void printStackTrace(PrintStream ps)
- 覆盖:
printStackTrace
在类中Throwable
printStackTrace
public void printStackTrace(PrintWriter pw)
- 覆盖:
printStackTrace
在类中Throwable
contains
public boolean contains(Class<?> exType)
从类复制的说明:NestedRuntimeException
Check whether this exception contains an exception of the given type: either it is of the given class itself or it contains a nested cause of the given type.- 覆盖:
contains
在类中NestedRuntimeException
- 参数:
exType
- the exception type to look for- 返回:
- whether there is a nested exception of the specified type