Issue a warning SalesforceWarning, with message combined from message and data from SFDC response
550717
def warn_sf(messages, response, verbs=None, klass=SalesforceWarning):
    """"""
    warnings.warn(klass(messages, response, verbs), stacklevel=2)
932164
def raise_errors(self, response):
        """"""
        # Errors: 400, 403 permissions or REQUEST_LIMIT_EXCEEDED, 404, 405, 415, 500)
        # TODO extract a case ID for Salesforce support from code 500 messages

        # TODO disabled 'debug_verbs' temporarily, after writing better default messages
        verb = self.debug_verbs  # NOQA pylint:disable=unused-variable
        method = response.request.method
        data = None
        is_json = 'json' in response.headers.get('Content-Type', '') and response.text
        if is_json:
            data = json.loads(response.text)
        if not (isinstance(data, list) and data and 'errorCode' in data[0]):
            messages = [response.text] if is_json else []
            raise OperationalError(
                ['HTTP error "%d %s":' % (response.status_code, response.reason)]
                + messages, response, ['method+url'])

        # Other Errors are reported in the json body
        err_msg = data[0]['message']
        err_code = data[0]['errorCode']
        if response.status_code == 404:  # ResourceNotFound
            if method == 'DELETE' and err_code in ('ENTITY_IS_DELETED', 'INVALID_CROSS_REFERENCE_KEY'):
                # It was a delete command and the object is in trash bin or it is
                # completely deleted or it could be a valid Id for this sobject type.
                # Then we accept it with a warning, similarly to delete by a classic database query:
                # DELETE FROM xy WHERE id = 'something_deleted_yet'
                warn_sf([err_msg, "Object is deleted before delete or update"], response, ['method+url'])
                # TODO add a warning and add it to messages
                return None
        if err_code in ('NOT_FOUND',           # 404 e.g. invalid object type in url path or url query?q=select ...
                        'METHOD_NOT_ALLOWED',  # 405 e.g. patch instead of post
                        ):                     # both need to report the url
            raise SalesforceError([err_msg], response, ['method+url'])
        # it is good e.g for these errorCode: ('INVALID_FIELD', 'MALFORMED_QUERY', 'INVALID_FIELD_FOR_INSERT_UPDATE')
        raise SalesforceError([err_msg], response)
219746
def warn(self, message):
        
        if message not in self._warnings:
            self._warnings.append(message)

        self.logger.warn(message)
1331752
def warning(*tokens: Token, **kwargs: Any) -> None:
    
    tokens = [brown, "Warning:"] + list(tokens)  # type: ignore
    kwargs["fileobj"] = sys.stderr
    message(*tokens, **kwargs)
1189450
def warn(self, msg):
        
        self.warnings.append(
            self.state.document.reporter.warning(msg, line=self.lineno)
        )
862726
protected ValidationMessage<Origin> reportWarning(Origin origin, String messageKey,
			Object... params) {
		return reportMessage(Severity.WARNING, origin, messageKey, params);
	}
848698
def warning(self, text):
		
		self.logger.warning("{}{}".format(self.message_prefix, text))
119134
def warnings(self):
        
        response = self._get(url.status_warnings)
        self._check_response(response, 200)
        return self._create_response(response)
1173494
def write_warning (self, url_data):
        """"""
        self.write(self.part("warning") + self.spaces("warning"))
        warning_msgs = [u"[%s] %s" % x for x in url_data.warnings]
        self.writeln(self.wrap(warning_msgs, 65), color=self.colorwarning)
95237
def warning (self, msg, pos=None):
    """"""
    self.log(msg, 'warning: ' + self.location(pos))
214642
protected void handleWarningsInResponse(VOMSACRequest request,
    VOMSServerInfo si, VOMSResponse response) {

    if (response.hasWarnings())
      requestListener.notifyWarningsInVOMSResponse(request, si,
        response.warningMessages());
  }
1225279
function emitWarning(msg, type) {
  if (process.emitWarning) {
    process.emitWarning(msg, type);
  } else {
    process.nextTick(function() {
      console.warn(type + ': ' + msg);
    });
  }
}
203426
private void iaddWarning(String desc, String value, String loc) {
    if (!validate) return;
    ValidationEvent ve = new ValidationEvent(desc, value, loc);
    warnings.add(ve);
  }
392226
def warn(message, ids: [], &block)
      msg = ids.empty? ? '' : "[#{ids.map!(&:to_s).map(&:inspect).join(', ')}] "
      msg += message
      @logger.warn(msg, &block) unless (@ignored & ids).any?
    end
306176
def warn(self, msg, *args, **kwargs):
        """"""
        self.log(self.WARN, msg, *args, **kwargs)
496875
def showwarning(title=None, message=None, **options):
    """"""
    return psidialogs.warning(title=title, message=message)
474406
def warning(self, request, message, extra_tags='', fail_silently=False):
        """"""
        add(self.target_name, request, constants.WARNING, message, extra_tags=extra_tags,
            fail_silently=fail_silently)