net.sf.oval.exception
Class ConstraintsViolatedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
net.sf.oval.exception.OValException
net.sf.oval.exception.ConstraintsViolatedException
- All Implemented Interfaces:
- Serializable
public class ConstraintsViolatedException
- extends OValException
This exception is thrown if one or more constraints are not satisfied during validation.
- Author:
- Sebastian Thomschke
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
ConstraintsViolatedException
public ConstraintsViolatedException(ConstraintViolation... constraintViolations)
- Parameters:
constraintViolations
- must not be null
ConstraintsViolatedException
public ConstraintsViolatedException(List<ConstraintViolation> constraintViolations)
- Parameters:
constraintViolations
- must not be null
getCausingThreadId
public long getCausingThreadId()
- Returns:
- the id of the thread in which the violations occurred
getConstraintViolations
public ConstraintViolation[] getConstraintViolations()
- Returns:
- the constraintViolations
Copyright © 2005-2013 The OVal Development Team. All Rights Reserved.