org.dellroad.stuff.pobj
Class PersistentObjectValidationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.dellroad.stuff.pobj.PersistentObjectException
                  extended by org.dellroad.stuff.pobj.PersistentObjectValidationException
All Implemented Interfaces:
Serializable

public class PersistentObjectValidationException
extends PersistentObjectException

Runtime exception thrown during PersistentObject operations.

See Also:
Serialized Form

Constructor Summary
PersistentObjectValidationException(Set<ConstraintViolation<?>> violations)
          Constructor.
 
Method Summary
 Set<ConstraintViolation<?>> getViolations()
          Get the set of constraint violations.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PersistentObjectValidationException

public PersistentObjectValidationException(Set<ConstraintViolation<?>> violations)
Constructor.

Parameters:
violations - set of violations
Throws:
IllegalArgumentException - if violations is null
Method Detail

getViolations

public Set<ConstraintViolation<?>> getViolations()
Get the set of constraint violations.