unique violation errors should be error objects