org.springframework.datastore.validation
Class ValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.dao.DataAccessException
org.springframework.dao.NonTransientDataAccessException
org.springframework.dao.DataIntegrityViolationException
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
Methods inherited from class org.springframework.core.NestedRuntimeException |
contains, getMostSpecificCause, getRootCause |
ValidationException
public ValidationException(String msg,
org.springframework.validation.Errors errors)
getMessage
public String getMessage()
- Overrides:
getMessage
in class org.springframework.core.NestedRuntimeException
formatErrors
public static String formatErrors(org.springframework.validation.Errors errors,
String msg)