Added missing exception in repository