Adds a violation message for the current node.

@param string $message
@param array  $parameters
342132
public function addViolation($message, array $parameters = [])
    {
        $this->violations[] = [
            'path' => $this->getCurrentPath(),
            'message' => vsprintf($message, $parameters),
        ];
    }
529705
public static function withErrorCodeAndParams($errorCode, $message, $parameters, $innerException = null)
	{
		// The messages use the .NET string substitution convention using curly braces
		// so these few lines replace references with the appropriate parameter
		if ( preg_match_all( "/\{(\d)\}/", $message, $matches ) )
		{
			foreach ( $matches[1] as $index => $match )
			{
				if ( ! isset( $parameters[$match] ) ) continue;
				$message = str_replace( "{{$match}}", $parameters[$match], $message );
			}
		}

		$ex = new XPath2Exception( $message, $innerException );
		$ex->ErrorCode = $errorCode;
		return $ex;
	}
789298
public function setMessage($message, $type = 'info', $parameters = [])
    {
        $this->getSession()->getFlashBag()->add($type, $this->translate($message, $parameters));
    }
187493
public function add($key, $message)
	{
		if ($this->unique($key, $message)) $this->messages[$key][] = $message;
	}
934990
public function add($message)
    {
        $this->_messages[] = $this->log_timestamp() . $message . PHP_EOL;
        $this->debug($message);
    }
269333
public function checkOnceValidParamExists(array $requiredParams, array $values, $message = null)
    {
        $this->checkEmptyParams($requiredParams, 'exception_any_parameter_given_to_AlValidatorn');
        $this->checkEmptyParams($values, 'exception_any_value_to_check_when_only_a_param_exists');

        $diff = array_intersect_key($requiredParams, $values);
        if (empty($diff)) {
            if (null === $message) {
                $message = array(
                    'message' => 'exception_any_valid_option_provided',
                    'parameters' => array(
                        '%required%' => $this->doImplode($requiredParams),
                        '%values%' => $this->doImplode($values),
                    ),
                );

                $message = json_encode($message);
            }

            throw new General\ArgumentExpectedException($message);
        }
    }
428931
protected function addFlashMessage($messageType, $message, array $parameters = [])
    {
        $this->addFlash(
            'tags.' . $messageType,
            $this->get('translator')->trans(
                $messageType . '.' . $message,
                $parameters,
                'eztags_admin_flash'
            )
        );
    }
1117837
public static function addMessageIfNotEmpty($message,$condition,$label='INFO'){
		if ( empty($condition)===false ) {
			self::debugbar()->addMessage($message,$label);
		}
	}
1142194
public function setMessage($message, $param=null)
    {
        if ($param) {
            $message = sprintf($message, $param);
        }
        $this->message = $message;
        
        return $this;
    }
645223
public function violate($message)
    {
        if (!empty($this->messages)){
            $message = $this->messages[0];
        } else {
            $this->setMessage($message);
        }
    }
998829
public function message($message, $options = null) {
		$options = $this->_mergeOptions($options);

		$this->set($message, $options);

		$this->_assertSessionStackSize($options);
	}
710186
public function appendMessage($message, $folder = null, $flags = null)
    {
        if ($folder === null) {
            $folder = $this->_currentFolder;
        }

        if ($flags === null) {
            $flags = array(Zend_Mail_Storage::FLAG_SEEN);
        }

        // TODO: handle class instances for $message
        if (!$this->_protocol->append($folder, $message, $flags)) {
            /**
             * @see Zend_Mail_Storage_Exception
             */
            // require_once 'Zend/Mail/Storage/Exception.php';
            throw new Zend_Mail_Storage_Exception('cannot create message, please check if the folder exists and your flags');
        }
    }
680901
public function appendMessage($message)
    {
        $context = $this->_context;

        $context->messages[$message->field][] = $message;

        return $this;
    }
371876
private function addRule($rule, $field, $parameters, $closue = null, $message = null) {

		$this -> rules[] = (object) [

			'rule' 			=> $rule, 
			'field' 		=> $field, 
			'parameters'	=> $parameters,
			'closure'		=> $closue,
			'prefix' 		=> $this -> getPrefix(),
			'message'		=> $message,
			'required' 		=> true
		];
	}
465081
public static function badRequest(string $message, string $protocol = Protocol::HTTP): self
    {
        return new static(sprintf('Bad Request: `%s`', $message), $protocol, 400);
    }
738690
protected function translate($message, $parameters = array())
    {
        return $this->translator->trans($message, $parameters, $this->translationDomain);
    }
631998
public function add(ApnsPHP_Message $message)
	{
		$sMessagePayload = $message->getPayload();
		$nRecipients = $message->getRecipientsNumber();

		$nMessageQueueLen = count($this->_aMessageQueue);
		for ($i = 0; $i < $nRecipients; $i++) {
			$nMessageID = $nMessageQueueLen + $i + 1;
			$this->_aMessageQueue[$nMessageID] = array(
				'MESSAGE' => $message,
				'BINARY_NOTIFICATION' => $this->_getBinaryNotification(
					$message->getRecipient($i),
					$sMessagePayload,
					$nMessageID,
					$message->getExpiry()
				),
				'ERRORS' => array()
			);
		}
	}