public class PropertyBatchUpdateException extends BeansException
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.
Modifier and Type | Field and Description |
---|---|
private PropertyAccessException[] |
propertyAccessExceptions
List of PropertyAccessException objects
|
Constructor and Description |
---|
PropertyBatchUpdateException(PropertyAccessException[] propertyAccessExceptions)
Create a new PropertyBatchUpdateException.
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(java.lang.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.
|
java.lang.String |
getMessage()
Return the detail message, including the message from the nested exception
if there is one.
|
PropertyAccessException |
getPropertyAccessException(java.lang.String propertyName)
Return the exception for this field, or
null if there isn't any. |
PropertyAccessException[] |
getPropertyAccessExceptions()
Return an array of the propertyAccessExceptions stored in this object.
|
void |
printStackTrace(java.io.PrintStream ps) |
void |
printStackTrace(java.io.PrintWriter pw) |
java.lang.String |
toString() |
getMostSpecificCause, getRootCause
private PropertyAccessException[] propertyAccessExceptions
public PropertyBatchUpdateException(PropertyAccessException[] propertyAccessExceptions)
propertyAccessExceptions
- the List of PropertyAccessExceptionspublic final int getExceptionCount()
public final PropertyAccessException[] getPropertyAccessExceptions()
Will return the empty array (not null
) if there were no errors.
@Nullable public PropertyAccessException getPropertyAccessException(java.lang.String propertyName)
null
if there isn't any.public java.lang.String getMessage()
NestedRuntimeException
getMessage
in class NestedRuntimeException
public java.lang.String toString()
toString
in class java.lang.Throwable
public void printStackTrace(java.io.PrintStream ps)
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintWriter pw)
printStackTrace
in class java.lang.Throwable
public boolean contains(@Nullable java.lang.Class<?> exType)
NestedRuntimeException
contains
in class NestedRuntimeException
exType
- the exception type to look for