code: def _raise_exception(cls, reason, data=None):
      
      text_dict = {
          "error": reason
      }
  
      if data is not None:
          text_dict["errors"] = data
  
      raise cls(
          text=json.dumps(text_dict),
          content_type="application/json"
      )
docs: Raise aiohttp exception and pass payload/reason into it.