Package grails.validation
Class ValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.grails.core.exceptions.GrailsException
grails.validation.ValidationException
- All Implemented Interfaces:
Serializable
Thrown when validation fails during a .save().
- Since:
- 1.2
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringformatErrors(org.springframework.validation.Errors errors) static StringformatErrors(org.springframework.validation.Errors errors, String msg) org.springframework.validation.ErrorsMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ValidationException
-
-
Method Details
-
getErrors
public org.springframework.validation.Errors getErrors() -
getMessage
- Overrides:
getMessagein classThrowable
-
formatErrors
-
formatErrors
-