repository: refactored exceptions