hasErrors
Purpose
Check if a controller has errors associated with it.Examples
class DemoController { def generateReport(int size) { if(hasErrors()) { errors.allErrors.each { println it } } } }
(Quick Reference)
hasErrorsPurposeCheck if a controller has errors associated with it.Examplesclass DemoController { def generateReport(int size) { if(hasErrors()) { errors.allErrors.each { println it } } } } |
Command LineConstraintsControllersDatabase MappingDomain ClassesPlug-insServicesServlet APITag LibrariesTags |