Creates a validation message for the sequence and adds it to
the validation result.

@param severity message severity
@param messageKey a message key
@param params message parameters
431749
protected void reportMessage(ValidationResult result, Severity severity,
                                 String messageKey, Object... params) {
        result.append(EntryValidations.createMessage(origin, severity, messageKey, params));
    }
1292105
public final void addDefaultMessage(final String key, final String value) {
        Validate.notNull(key, "Key for default message cannot be null");
        Validate.notNull(value, "Value for default message cannot be null");
        this.defaultMessages.put(key, value);
    }
1124015
def add(severity, message = nil, progname = nil, &block)
      return if @level > severity
      message = (message || (block && block.call) || progname).to_s
      message = formatter.call(formatter.number_to_severity(severity), Time.now.utc, progname, message)
      message = "#{message}\n" unless message[-1] == ?\n
      buffer << message
      auto_flush
      message
    end
228060
public void error(Enum<?> key, Object... args) {
        if (!logger.isErrorEnabled()) {
            return;
        }
        String translatedMsg = imc.getMessage(key, args);
        MessageParameterObj mpo = new MessageParameterObj(key, args);

        if (instanceofLAL) {
            ((LocationAwareLogger) logger).log(LOCALIZED, FQCN, LocationAwareLogger.ERROR_INT, translatedMsg, args, null);
        } else {
            logger.error(LOCALIZED, translatedMsg, mpo);
        }
    }
559430
final protected function addFailureMessage(string $messageKey) : void
    {
        $messages = $this->getPossibleMessages();

        if (! isset($messages[$messageKey])) {
            throw new \RuntimeException('Unknown message key: ' . $messageKey);
        }

        $this->failureMessages[$messageKey] = $messages[$messageKey];
    }
1172966
public static ValidationMessage<Origin> message(
			LineReader lineReader, Severity severity,
			String messageKey, Object... params) {
		return message(lineReader.getCurrentLineNumber(), severity, messageKey, params);
	}
886348
public static FacesMessage getMessage(FacesMessage.Severity severity,
                                          String messageId,
                                          Object arg)
    {
        return getMessage(severity,
                          messageId,
                          new Object[]{arg},
                          FacesContext.getCurrentInstance());
    }
343409
protected final void addMessage(String msgKey, Object... args) {
    getFlash().addMessageNow(getTextInternal(msgKey, args));
  }
271812
public static ValidationMessage<Origin> warning(String messageKey, Object... params) {
		return ValidationMessage.message(Severity.WARNING, messageKey, params);
	}
862726
protected ValidationMessage<Origin> reportWarning(Origin origin, String messageKey,
			Object... params) {
		return reportMessage(Severity.WARNING, origin, messageKey, params);
	}
1276168
protected ValidationMessage<Origin> reportError(Origin origin, String messageKey,
			Object... params) {
		return reportMessage(Severity.ERROR, origin, messageKey, params);
	}
229676
public void define(final MessageItem key, final MessageResource forcedValue) {
        this.overriddenMessageMap.put(key, forcedValue);
        set(getParamKey(key), forcedValue);
    }
865926
private function addTranslatableError(string $messageKey, string $defaultMessage) : void
    {
        $message = $defaultMessage;

        if (null !== $translator = $this->form->getTranslator()) {
            $translatedMessage = $translator($messageKey);
            if ($translatedMessage !== null) {
                $message = $translatedMessage;
            }
        }

        $this->addError($message);
    }
237068
public String format( String key, Object... params )
    {
        try
        {
            MessageFormat formatter = new MessageFormat( bundle.getString( key ) );
            return formatter.format( params );
        }
        catch (MissingResourceException ex)
        {
            return key;
        }
    }
1272811
public void error(Error errorKey) {
        report(diags.error(null, source, null, errorKey));
    }
257663
protected void validateInteger(int index, String errorKey, String errorMessage) {
		String value = controller.getPara(index);
		if (value != null && (value.startsWith("N") || value.startsWith("n"))) {
			value = "-" + value.substring(1);
		}
		validateIntegerValue(value, errorKey, errorMessage);
	}
645527
public String getMessage(String key, Locale locale, Object[] parameters)
	{
		if (null == locale)
		{
			return getMessage(key, parameters);
		}
		if (null == parameters)
		{
			return getMessage(key, locale);
		}
		if (null != key)
		{
			MessageFormat _messageFormat = new MessageFormat(getMessage(key, locale));
			return _messageFormat.format(parameters);
		}

		return null;
	}