<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def write_to(self, content, content_type):
 """Writes text content to this item. Args: content: the text content to be written. content_type: the type of text content. Raises: Exception if there was an error requesting the item's content. """

    try:
      self._api.object_upload(self._bucket, self._key, content, content_type)
    except Exception as e:
      raise e