org.hibernate.validator.method
Class MethodConstraintViolationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
javax.validation.ValidationException
org.hibernate.validator.method.MethodConstraintViolationException
- All Implemented Interfaces:
- Serializable
public class MethodConstraintViolationException
- extends ValidationException
Exception class to be thrown by integrators of HV's method level validation feature.
- Author:
- Gunnar Morling
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
MethodConstraintViolationException
public MethodConstraintViolationException(Set<? extends MethodConstraintViolation<?>> constraintViolations)
- Creates a new new
MethodConstraintViolationException
.
- Parameters:
constraintViolations
- A set of constraint violations for which this exception shall be created.
MethodConstraintViolationException
public MethodConstraintViolationException(String message,
Set<? extends MethodConstraintViolation<?>> constraintViolations)
- Creates a new new
MethodConstraintViolationException
.
- Parameters:
message
- The message for the exception to be created.constraintViolations
- A set of constraint violations for which this exception shall be created.
getConstraintViolations
public Set<MethodConstraintViolation<?>> getConstraintViolations()
- Set of constraint violations reported during a validation
- Returns:
- A set of
MethodConstraintViolation
occurred during a method level validation call.
Copyright © 2007-2011 Red Hat Middleware, LLC. All Rights Reserved