adds an exception if a rule was not found