|
||||||||||
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
javax.persistence.PersistenceException
com.avaje.ebean.ValidationException
public class ValidationException
Exception thrown when a validation rule fails when saving a bean.
Constructor Summary | |
---|---|
ValidationException(InvalidValue invalid) |
Method Summary | |
---|---|
InvalidValue[] |
getErrors() Return the actual errors for all beans validated. |
InvalidValue |
getInvalid() Return the InvalidValue tree. |
String |
toString() |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ValidationException(InvalidValue invalid)
Method Detail |
---|
public InvalidValue getInvalid()
This is a tree structure as validation can cascade to associated one and associated many beans.
public InvalidValue[] getErrors()
This flattens the InvalidValue tree just returning the actual errors excluding the InvalidValue 'beans' that just hold errors (as children).
public String toString()
toString
in class Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |