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 final PropertyAccessException[] | propertyAccessExceptions
List of PropertyAccessException objects. |
| Access | Constructor and Description |
|---|---|
| public | PropertyBatchUpdateException(PropertyAccessException[]
the List of PropertyAccessExceptions propertyAccessExceptions)Create a new PropertyBatchUpdateException. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | contains(Class<?>
the exception type to look for exType)Overrides org. 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. |
| public final int | |
| public String | getMessage()
Overrides java. Returns the detail message string of this throwable. |
| public PropertyAccessException | getPropertyAccessException(String propertyName)
Return the exception for this field, or |
| public final PropertyAccessException[] | |
| public void | printStackTrace(PrintStream
PrintStream to use for outputOverrides java. Prints this throwable and its backtrace to the specified print stream. |
| public void | printStackTrace(PrintWriter
PrintWriter to use for outputOverrides java. Prints this throwable and its backtrace to the specified print writer. |
| public String |
| propertyAccessExceptions | back to summary |
|---|---|
| private final PropertyAccessException[] propertyAccessExceptions List of PropertyAccessException objects. | |
| PropertyBatchUpdateException | back to summary |
|---|---|
| public PropertyBatchUpdateException(PropertyAccessException[] propertyAccessExceptions) Create a new PropertyBatchUpdateException.
| |
| contains | back to summary |
|---|---|
| public boolean contains(Class<?> exType) Overrides org. Doc from org. 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. | |
| getExceptionCount | back to summary |
|---|---|
| public final int getExceptionCount() If this returns 0, no errors were encountered during binding. | |
| getMessage | back to summary |
|---|---|
| public String getMessage() Overrides java. Doc from java. Returns the detail message string of this throwable. | |
| getPropertyAccessException | back to summary |
|---|---|
| public PropertyAccessException getPropertyAccessException(String propertyName) Return the exception for this field, or
| |
| getPropertyAccessExceptions | back to summary |
|---|---|
| public final PropertyAccessException[] getPropertyAccessExceptions() Return an array of the propertyAccessExceptions stored in this object. Will return the empty array (not | |
| printStackTrace | back to summary |
|---|---|
| public void printStackTrace(PrintStream ps) Overrides java. Doc from java. Prints this throwable and its backtrace to the specified print stream.
| |
| printStackTrace | back to summary |
|---|---|
| public void printStackTrace(PrintWriter pw) Overrides java. Doc from java. Prints this throwable and its backtrace to the specified print writer.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a short description of this throwable. The result is the concatenation of:
getLocalizedMessage returns null, then just
the class name is returned.
| |