Throw an exception if a rule does not exist