|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException org.springframework.core.NestedRuntimeException org.springframework.beans.BeansException org.springframework.beans.PropertyAccessExceptionsException
public class PropertyAccessExceptionsException
Combined exception, composed of individual binding propertyAccessExceptions. 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 | |
---|---|
PropertyAccessExceptionsException(BeanWrapper beanWrapper,
PropertyAccessException[] propertyAccessExceptions)
Create a new PropertyAccessExceptionsException. |
Method Summary | |
---|---|
boolean |
contains(Class exClass)
Check whether this exception contains an exception of the given class: either it is of the given class itself or it contains a nested cause of the given class. |
BeanWrapper |
getBeanWrapper()
Return the BeanWrapper that generated this exception. |
Object |
getBindObject()
Return the object we're binding to. |
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 one. |
PropertyAccessException[] |
getPropertyAccessExceptions()
Return an array of the propertyAccessExceptions stored in this object. |
void |
printStackTrace(PrintStream ps)
Print the composite message and the embedded stack trace to the specified stream. |
void |
printStackTrace(PrintWriter pw)
Print the composite message and the embedded stack trace to the specified writer. |
String |
toString()
|
Methods inherited from class org.springframework.core.NestedRuntimeException |
---|
getCause |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PropertyAccessExceptionsException(BeanWrapper beanWrapper, PropertyAccessException[] propertyAccessExceptions)
beanWrapper
- the BeanWrapper that wraps the target objectpropertyAccessExceptions
- the List of PropertyAccessExceptionsMethod Detail |
---|
public BeanWrapper getBeanWrapper()
public Object getBindObject()
public int getExceptionCount()
public PropertyAccessException[] getPropertyAccessExceptions()
public PropertyAccessException getPropertyAccessException(String propertyName)
null
if there isn't one.
public String getMessage()
NestedRuntimeException
getMessage
in class NestedRuntimeException
public String toString()
toString
in class Throwable
public void printStackTrace(PrintStream ps)
NestedRuntimeException
printStackTrace
in class NestedRuntimeException
ps
- the print streampublic void printStackTrace(PrintWriter pw)
NestedRuntimeException
printStackTrace
in class NestedRuntimeException
pw
- the print writerpublic boolean contains(Class exClass)
NestedRuntimeException
Currently just traverses NestedRuntimeException causes. Will use the JDK 1.4 exception cause mechanism once Spring requires JDK 1.4.
contains
in class NestedRuntimeException
exClass
- the exception class to look for
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |