              "that case.")
      E166 = ("Can only merge DocBins with the same pre-defined attributes.\n"
              "Current DocBin: {current}\nOther DocBin: {other}")
  
  
  @add_codes
  class TempErrors(object):
 
</s> remove             raise ValueError(
                "Cannot apply transition {name}: invalid for the current state.".format(name=name))
 </s> add             raise ValueError(Errors.E170.format(name=name)) </s> remove         raise ValueError("Unknown feature: %s (%d)" % (FEATURE_NAMES.get(feature), feature))
 </s> add         raise ValueError(Errors.E167.format(field=FEATURE_NAMES.get(feature), field_id=feature)) </s> remove                 raise KeyError("Unknown feature: %s" % self.strings[feature])
 </s> add                 raise ValueError(Errors.E167.format(feat=self.strings[feature], feat_id=feature)) </s> remove         raise ValueError("Can't find module {}".format(repr(module)))
 </s> add         raise ValueError(Errors.E169.format(module=repr(module))) </s> remove         raise ValueError("Unknown field: (%d)" % field_id)
 </s> add         raise ValueError(Errors.E168.format(field=field_id))
    E167 = ("Unknown morphological feature: '{feat}' ({feat_id}). This can "
            "happen if the tagger was trained with a different set of "
            "morphological features. If you're using a pre-trained model, make "
            "sure that your models are up to date:\npython -m spacy validate")
    E168 = ("Unknown field: {field}")
    E169 = ("Can't find module: {module}")
    E170 = ("Cannot apply transition {name}: invalid for the current state.")
              "that case.")
      E166 = ("Can only merge DocBins with the same pre-defined attributes.\n"
              "Current DocBin: {current}\nOther DocBin: {other}")
    E167 = ("Unknown morphological feature: '{feat}' ({feat_id}). This can "
            "happen if the tagger was trained with a different set of "
            "morphological features. If you're using a pre-trained model, make "
            "sure that your models are up to date:\npython -m spacy validate")
    E168 = ("Unknown field: {field}")
    E169 = ("Can't find module: {module}")
    E170 = ("Cannot apply transition {name}: invalid for the current state.")
  
  
  @add_codes
  class TempErrors(object):
keep keep add keep keep keep keep
 Improve Morphology errors (#4314)

* Improve Morphology errors

* Also clean up some other errors

* Update errors.py 
spacy/errors.py