org.springframework.datastore.validation
Class ValidationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.springframework.core.NestedRuntimeException
                  extended by org.springframework.dao.DataAccessException
                      extended by org.springframework.dao.NonTransientDataAccessException
                          extended by org.springframework.dao.DataIntegrityViolationException
                              extended by org.springframework.datastore.validation.ValidationException
All Implemented Interfaces:
Serializable

public class ValidationException
extends org.springframework.dao.DataIntegrityViolationException

Exception thrown when a validation error occurs

See Also:
Serialized Form

Constructor Summary
ValidationException(String msg, org.springframework.validation.Errors errors)
           
 
Method Summary
static String formatErrors(org.springframework.validation.Errors errors, String msg)
           
 String getMessage()
           
 
Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getMostSpecificCause, getRootCause
 
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
 

Constructor Detail

ValidationException

public ValidationException(String msg,
                           org.springframework.validation.Errors errors)
Method Detail

getMessage

public String getMessage()
Overrides:
getMessage in class org.springframework.core.NestedRuntimeException

formatErrors

public static String formatErrors(org.springframework.validation.Errors errors,
                                  String msg)