public class

PropertyBatchUpdateException

extends BeansException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ org.springframework.core.NestedRuntimeException
           ↳ org.springframework.beans.BeansException
             ↳ org.springframework.beans.PropertyBatchUpdateException

Class Overview

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.

Summary

Public Constructors
PropertyBatchUpdateException(PropertyAccessException[] propertyAccessExceptions)
Create a new PropertyBatchUpdateException.
Public Methods
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.
final 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, or null if there isn't any.
final PropertyAccessException[] getPropertyAccessExceptions()
Return an array of the propertyAccessExceptions stored in this object.
void printStackTrace(PrintWriter pw)
void printStackTrace(PrintStream ps)
String toString()
[Expand]
Inherited Methods
From class org.springframework.beans.BeansException
From class org.springframework.core.NestedRuntimeException
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public PropertyBatchUpdateException (PropertyAccessException[] propertyAccessExceptions)

Also: SpringBeans

Create a new PropertyBatchUpdateException.

Parameters
propertyAccessExceptions the List of PropertyAccessExceptions

Public Methods

public boolean contains (Class exType)

Also: SpringBeans

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.

Parameters
exType the exception type to look for
Returns
  • whether there is a nested exception of the specified type

public final int getExceptionCount ()

Also: SpringBeans

If this returns 0, no errors were encountered during binding.

public String getMessage ()

Also: SpringBeans

Return the detail message, including the message from the nested exception if there is one.

public PropertyAccessException getPropertyAccessException (String propertyName)

Also: SpringBeans

Return the exception for this field, or null if there isn't any.

public final PropertyAccessException[] getPropertyAccessExceptions ()

Also: SpringBeans

Return an array of the propertyAccessExceptions stored in this object.

Will return the empty array (not null) if there were no errors.

public void printStackTrace (PrintWriter pw)

Also: SpringBeans

public void printStackTrace (PrintStream ps)

Also: SpringBeans

public String toString ()

Also: SpringBeans