fr.paris.lutece.plugins.stock.commons.exception
Class ValidationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by fr.paris.lutece.plugins.stock.commons.exception.FunctionnalException
                  extended by fr.paris.lutece.plugins.stock.commons.exception.ValidationException
All Implemented Interfaces:
Serializable

public class ValidationException
extends FunctionnalException

Exception thrown for validation errors

Author:
abataille
See Also:
Serialized Form

Field Summary
static String VALIDATION_ERROR
           
 
Constructor Summary
ValidationException(Object bean)
          Instantiates a new validation exception.
ValidationException(Object bean, javax.validation.ConstraintViolation<?> constraintViolation)
          Instantiates a new validation exception.
 
Method Summary
 void addConstraintViolation(javax.validation.ConstraintViolation<?> constraintViolation)
          Adds the constraint violation.
 List<javax.validation.ConstraintViolation<?>> getConstraintViolationList()
           
 String getMessage()
          
 void setConstraintViolationList(List<javax.validation.ConstraintViolation<?>> constraintViolationList)
          Sets the constraint violation list.
 
Methods inherited from class fr.paris.lutece.plugins.stock.commons.exception.FunctionnalException
getBean, setBean
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

VALIDATION_ERROR

public static final String VALIDATION_ERROR
Constructor Detail

ValidationException

public ValidationException(Object bean,
                           javax.validation.ConstraintViolation<?> constraintViolation)
Instantiates a new validation exception.

Parameters:
bean - the bean
constraintViolation - the constraint violation

ValidationException

public ValidationException(Object bean)
Instantiates a new validation exception.

Parameters:
bean - the bean
Method Detail

getConstraintViolationList

public List<javax.validation.ConstraintViolation<?>> getConstraintViolationList()
Returns:
the constraintViolationList

setConstraintViolationList

public void setConstraintViolationList(List<javax.validation.ConstraintViolation<?>> constraintViolationList)
Sets the constraint violation list.

Parameters:
constraintViolationList - the constraintViolationList to set

addConstraintViolation

public void addConstraintViolation(javax.validation.ConstraintViolation<?> constraintViolation)
Adds the constraint violation.

Parameters:
constraintViolation - the constraint violation

getMessage

public String getMessage()

Overrides:
getMessage in class Throwable


Copyright © 2013 Mairie de Paris. All Rights Reserved.