code: def run_console_rule(self, product, subject):
      
      request = self.execution_request([product], [subject])
      returns, throws = self.execute(request)
  
      if throws:
        _, state = throws[0]
        exc = state.exc
        self._trace_on_error([exc], request)
        return PANTS_FAILED_EXIT_CODE
      _, state = returns[0]
      return state.value.exit_code
docs: :param product: A Goal subtype.
      :param subject: subject for the request.
      :returns: An exit_code for the given Goal.