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:
java.io.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(java.util.Collection<ConstraintViolation> ve)
Creates a ConstraintViolationException with the set of violations
-
-
-
Constructor Detail
-
ConstraintViolationException
public ConstraintViolationException(java.util.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
-
-