error handling in CRUD interface