def GetDomainUserProfile(self, user_email):
    request = self._users.get(userId=user_email)
    try:
      return request.execute()
    except apiclient.errors.HttpError as e:  # Missing user raises HttpError.
      if e.resp.status == 404:
        print 'User %s not found.' % user_email
        sys.exit(1)
      error_text = http_utils.ParseHttpResult(e.uri, e.resp, e.content)
      raise APIToolPlusDomainsError(error_text)
Invoked by the terminal on any exception that occurs in application
dataset/ETHPy150Open google/gfw-toolkit/api_sample/peopletool.py/PeoplePlusDomains.GetDomainUserProfile--crossover with--dataset/ETHPy150Open rwl/muntjac/muntjac/application.py/Application.terminalError