Handler and translator for exceptions thrown by the Repository
| Type Params | Return Type | Name and description |
|---|---|---|
|
RuntimeException |
translateException(RuntimeException ex, GormEntity entity)Translates grails ValidationException and springs DataAccessException and DataIntegrityViolationException into our EntityValidationException so we have better information in the exception when its thrown and rolled back |
Translates grails ValidationException and springs DataAccessException and DataIntegrityViolationException into our EntityValidationException so we have better information in the exception when its thrown and rolled back
ex - the RuntimeException that was thrownentity - the entity this was thrown for