net.sf.oval.exception
Class ConstraintsViolatedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by net.sf.oval.exception.OValException
                  extended by 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

Constructor Summary
ConstraintsViolatedException(ConstraintViolation... constraintViolations)
           
ConstraintsViolatedException(List<ConstraintViolation> constraintViolations)
           
 
Method Summary
 long getCausingThreadId()
           
 ConstraintViolation[] getConstraintViolations()
           
 
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

ConstraintsViolatedException

public ConstraintsViolatedException(ConstraintViolation... constraintViolations)
Parameters:
constraintViolations - must not be null

ConstraintsViolatedException

public ConstraintsViolatedException(List<ConstraintViolation> constraintViolations)
Parameters:
constraintViolations - must not be null
Method Detail

getCausingThreadId

public long getCausingThreadId()
Returns:
the id of the thread in which the violations occurred

getConstraintViolations

public ConstraintViolation[] getConstraintViolations()
Returns:
the constraintViolations


Copyright © 2005–2015 The OVal Development Team. All rights reserved.