Suppose I have User domain class and RegistrationCommand class. So when user is registering on website there are two steps for data validation:
I did the following for my project and found it to be more cleaner!
domain.errors.each { cmdObject.errors.reject(it.code, g.message(error: it)) }