Sets the error message on the owner element
17954
protected function setOwnerError()
    {
        if (strlen($this->getMessage()) && !$this->owner->getError()) {
            $this->owner->setError($this->getMessage());
        }
    }
781331
def set_errors(self, result):
        

        # todo: use wtf locale
        errors = result.get_messages()

        for property_name in errors:
            if not hasattr(self, property_name):
                continue # ignore errors for missing fields

            prop_errors = errors[property_name]
            if type(prop_errors) is not list:
                prop_errors = ['<Nested schema result following...>']
            if property_name in self.errors:
                self.errors[property_name].extend(prop_errors)
            else:
                self.errors[property_name] = prop_errors
369285
protected function setupBorisErrorHandling()
	{
		restore_error_handler(); restore_exception_handler();

		$this->flyphp->make('flyconsole')->setCatchExceptions(false);

		$this->flyphp->error(function() { return ''; });
	}
94667
def error(message, color = :red)
      Strainer.log.error(message)

      return if quiet?
      message = set_color(message, *color) if color
      super(message)
    end
435878
function setStatus(err) {
    var code = constants.status.UNKNOWN;
    var details = 'Unknown Error';
    var metadata = new Metadata();
    if (err.hasOwnProperty('message')) {
      details = err.message;
    }
    if (err.hasOwnProperty('code')) {
      code = err.code;
      if (err.hasOwnProperty('details')) {
        details = err.details;
      }
    }
    if (err.hasOwnProperty('metadata')) {
      metadata = err.metadata;
    }
    stream.status = {code: code, details: details, metadata: metadata};
  }
1036505
public void setError(StanzaError.Builder xmppErrorBuilder) {
        if (xmppErrorBuilder == null) {
            return;
        }
        xmppErrorBuilder.setStanza(this);
        error = xmppErrorBuilder.build();
    }
892377
function(data, errorMessages){
	this.reset();

	if(data) this.setData(data);

	if(errorMessages)
		this.setErrorMessages(errorMessages);
	else
		this.setErrorMessages(require('./errorMessages'));
}
782553
def set_errors(self):
		
		if not self.field.errors or self.attrs.get("_no_errors"):
			return
		
		self.values["class"].append("error")

		for error in self.field.errors:
			self.values["errors"] += ERROR_WRAPPER % {"message": error}
867229
public FessMessages addErrorsLoginError(String property) {
        assertPropertyNotNull(property);
        add(property, new UserMessage(ERRORS_login_error));
        return this;
    }
21742
private void inflateErrorMessageTextViews() {
        View parent = View.inflate(getContext(), R.layout.error_messages, null);
        addView(parent, LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT);
        leftMessage = parent.findViewById(R.id.left_error_message);
        leftMessage.setTag(false);
        rightMessage = parent.findViewById(R.id.right_error_message);
        rightMessage.setTag(false);
    }
615867
def set_instance_erred(self, instance, error_message):
        
        instance.set_erred()
        instance.error_message = error_message
        instance.save(update_fields=['state', 'error_message'])
347209
protected void setError(int newPosition, String error,
      boolean currentExisting) {
    if (!currentExisting) {
      newAdvancedValueSumList[newPosition] = operations.getZero1();
      newAdvancedValueSumOfLogsList[newPosition] = operations.getZero2();
      newAdvancedValueSumOfSquaresList[newPosition] = operations.getZero1();
      newAdvancedValueMinList[newPosition] = operations.getZero1();
      newAdvancedValueMaxList[newPosition] = operations.getZero1();
      newAdvancedValueNList[newPosition] = 0;
    }
    newErrorNumber[newPosition]++;
    if (newErrorList[newPosition].containsKey(error)) {
      newErrorList[newPosition].put(error,
          newErrorList[newPosition].get(error) + 1);
    } else {
      newErrorList[newPosition].put(error, 1);
    }
  }
719577
def error(self, request, message, extra_tags='', fail_silently=False):
        """"""
        add(self.target_name, request, constants.ERROR, message, extra_tags=extra_tags,
            fail_silently=fail_silently)
174816
public FessMessages addErrorsFrontHeader(String property) {
        assertPropertyNotNull(property);
        add(property, new UserMessage(ERRORS_front_header));
        return this;
    }
38392
function setErrorStatus (error, status) {
  if (!error.status && !error.statusCode) {
    error.status = status
    error.statusCode = status
  }
}
1003112
def setValidityErrorHandler(self, err_func, warn_func, arg=None):
        
        libxml2mod.xmlSetValidErrors(self._o, err_func, warn_func, arg)
731202
def raise_error(self, status=500, message="Generic server error.  Out of luck..."):
        
        self.set_status(status)
        self.write({"message" : message,
                    "status" : status})