hasErrors
Purpose
True if the domain class instance has errors following a call to validate or save or following Data BindingExamples
def b = new Book(title:"The Shining") b.validate() if(b.hasErrors()) { b.errors.each { println it } }
(Quick Reference)
hasErrorsPurposeTrue if the domain class instance has errors following a call to validate or save or following Data BindingExamplesdef b = new Book(title:"The Shining") b.validate() if(b.hasErrors()) { b.errors.each { println it } } |
Command LineConstraintsControllersDatabase MappingDomain ClassesPlug-insServicesServlet APITag LibrariesTags |