com.avaje.ebean
Class ValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
javax.persistence.PersistenceException
com.avaje.ebean.ValidationException
- All Implemented Interfaces:
- Serializable
public class ValidationException
- extends javax.persistence.PersistenceException
Exception thrown when a validation rule fails when saving a bean.
- See Also:
- Serialized Form
ValidationException
public ValidationException(InvalidValue invalid)
getInvalid
public InvalidValue getInvalid()
- Return the InvalidValue tree.
This is a tree structure as validation can cascade to associated one and
associated many beans.
getErrors
public InvalidValue[] getErrors()
- Return the actual errors for all beans validated.
This flattens the InvalidValue tree just returning the actual errors
excluding the InvalidValue 'beans' that just hold errors (as children).
toString
public String toString()
- Overrides:
toString
in class Throwable
Copyright © 2010. All Rights Reserved.