class DemoController {
def generateReport(int size) {
if(hasErrors()) {
errors.allErrors.each {
println it
}
}
}
}
hasErrors
Purpose
Check if a controller has errors associated with it.
Examples
See errors.