def b = new Book(title:"The Shining") b.validate() if(b.hasErrors()) { b.errors.each { println it } }