Package dev.morphia.mapping.validation
Class ConstraintViolationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- dev.morphia.mapping.MappingException
-
- dev.morphia.mapping.validation.ConstraintViolationException
-
- All Implemented Interfaces:
Serializable
public class ConstraintViolationException extends MappingException
- Author:
- Uwe Schaefer, (us@thomas-daily.de)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConstraintViolationException(ConstraintViolation... ve)
Creates a ConstraintViolationException with the set of violationsConstraintViolationException(Collection<ConstraintViolation> ve)
Creates a ConstraintViolationException with the set of violations
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ConstraintViolationException
public ConstraintViolationException(Collection<ConstraintViolation> ve)
Creates a ConstraintViolationException with the set of violations- Parameters:
ve
- the violations
-
ConstraintViolationException
public ConstraintViolationException(ConstraintViolation... ve)
Creates a ConstraintViolationException with the set of violations- Parameters:
ve
- the violations
-
-