Refactoring error messages for the data access objects