|
spring-beans | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.beans.BeansException
org.springframework.beans.PropertyBatchUpdateException
public class PropertyBatchUpdateException
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.
Constructor Summary | |
---|---|
PropertyBatchUpdateException(PropertyAccessException[] propertyAccessExceptions)
Create a new PropertyBatchUpdateException. |
Method Summary | |
---|---|
boolean |
contains(java.lang.Class exType)
|
int |
getExceptionCount()
If this returns 0, no errors were encountered during binding. |
java.lang.String |
getMessage()
|
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()
|
Methods inherited from class org.springframework.beans.BeansException |
---|
equals, hashCode |
Methods inherited from class org.springframework.core.NestedRuntimeException |
---|
getMostSpecificCause, getRootCause |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PropertyBatchUpdateException(PropertyAccessException[] propertyAccessExceptions)
propertyAccessExceptions
- the List of PropertyAccessExceptionsMethod Detail |
---|
public final int getExceptionCount()
public final PropertyAccessException[] getPropertyAccessExceptions()
Will return the empty array (not null
) if there were no errors.
public PropertyAccessException getPropertyAccessException(java.lang.String propertyName)
null
if there isn't any.
public java.lang.String getMessage()
getMessage
in class org.springframework.core.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(java.lang.Class exType)
contains
in class org.springframework.core.NestedRuntimeException
|
spring-beans | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |