Package org.dellroad.stuff.pobj
Class PersistentObjectValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.dellroad.stuff.pobj.PersistentObjectException
org.dellroad.stuff.pobj.PersistentObjectValidationException
- All Implemented Interfaces:
Serializable
Runtime exception thrown during
PersistentObject
operations.- See Also:
-
Constructor Summary
ConstructorDescriptionPersistentObjectValidationException
(Set<jakarta.validation.ConstraintViolation<T>> violations) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionSet<jakarta.validation.ConstraintViolation<?>>
Get the set of constraint violations.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
PersistentObjectValidationException
public PersistentObjectValidationException(Set<jakarta.validation.ConstraintViolation<T>> violations) Constructor.- Type Parameters:
T
- root object type- Parameters:
violations
- set of violations- Throws:
IllegalArgumentException
- ifviolations
is null
-
-
Method Details
-
getViolations
Get the set of constraint violations.- Returns:
- the constraint violations that triggered this exception
-