code: def error(self, e):
      if isinstance(e, UnicodeDecodeError):
          for end in range(e.start + 1, e.end + 1):
              s = e.object[e.start : end]
              if s in self.mapping:
                  return self.mapping[s], end
      elif isinstance(e, UnicodeEncodeError):
          for end in range(e.start + 1, e.start + self.max_len + 1):
              s = e.object[e.start : end]
              if s in self.reverse:
                  return self.reverse[s], end
      e.encoding = self.name
      raise e
  
file_path: catboost/contrib/python/fonttools/fontTools/encodings/codecs.py
imports: import codecs
  import encodings
label_desc: Use image node_id 5 for calling the ExtendCodec obj's underlying member method code with example usage: obj.error(e) and returns: self,  end, self,  end