Notify a danger alert.

@param  string       $message
@param  string|null  $title
@param  array        $options
865
protected function notifyDanger($message, $title = null, array $options = [])
    {
        $this->notifyFlash($message, 'danger', $title, $options);
    }
1232900
public static function warning($message)
    {
        Craft::$app->controller->stdout($message.PHP_EOL, Console::FG_YELLOW);
    }
1254421
public function sendNotification($channels, Message $message, $options=array())
    {
        $status = array();
        foreach ($channels as $channel) {
            $notifier = $this->_getNotifier($channel);
            if (empty($notifier) === false) {
                $status[$channel] = $notifier->notify($message, $options);
            }

            return $status;
        }

    }
889974
protected function getAlert($namespace, $message, $title = null, $titleTag = 'h4', $isBlock = false)
    {
        $namespace = $this->classMessages[$namespace];

        $html = ($title) ? sprintf($this->titleFormat, $titleTag, $title, $titleTag) : '';
        $html .= $message . PHP_EOL;

        $alert = $this->getAlertHelper()->$namespace($html, $isBlock);

        return $alert;
    }
998829
public function message($message, $options = null) {
		$options = $this->_mergeOptions($options);

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

		$this->_assertSessionStackSize($options);
	}
1277107
public function alert(string $message, array $context = []){
        if($this->logger !== null){
            $this->logger->alert($message, $context);
        }

        if($this->messagePanel !== null){
            $this->messagePanel->addMessage($message, LogLevel::ALERT);
        }
    }
255283
public function showError($view, $message, $title = null)
    {
        return $this->show($view, 'error', $message, $title);
    }
186470
public function success($message, $title = null)
    {
        return $this->getAlertLibrary(true)->success((string)$message, (string)$title);
    }
586658
function alert(title, msg){
	if( typeof msg == 'undefined' )
	{
		msg = title;
		title = '';
	}
	$.jAlert({
		'title': title,
		'content': msg
	});
}
797407
public function alert($message = '', $context = [], $role = 'system', $times = 0, $ttl = 0)
    {
        if ($this->isSingle()) {
            $this->log($message, $context, Logger::ALERT, $role, $times, $ttl);
        }
    }
1164112
public function setNotification($prefix, $title, $message, $params, int $timeout, $group)
    {

        $toast = [
            "title" => $this->getTranslations($title, $params),
            "message" => $this->getTranslations($message, $params),
            "params" => ["prefix" => $prefix, "duration" => "".$timeout],
        ];


        $this->updateValue($group, 'notification', Builder::getArray($toast, true));

    }
903902
public function message($title, $text = null)
    {
        if (!in_array($this->type, ['success', 'error', 'info', 'warning'])) {
            return '';
        }
        $container = $this->assetFactory->container(self::position);
        $type      = $this->resolveType();
        return $container->inlineScript('swal-message', $this->inline($type, $title, $text));
    }
1269074
protected function notifyInfo($message, $title = null, array $options = [])
    {
        $this->notifyFlash($message, 'info', $title, $options);
    }
678575
public function title(string $message)
    {
        $this->style->newLine();
        $this->output->writeln(sprintf(
            '<highlight>>></> <title>%s</>',
            OutputFormatter::escapeTrailingBackslash(strtoupper($message))
        ));
        $this->style->newLine();
    }
971917
private function checkMessage($defMsg, array $options) {
        if (is_array($options) && isset($options['message']))
            return $options['message'] ? $options['message'] : null;

        return $defMsg;
    }
818337
protected void showErrorDialog(String message, String title) {
		JOptionPane.showMessageDialog(this, message, title, JOptionPane.ERROR_MESSAGE);
	}
1141255
private function labeledMessage($label, $message, $options = 0)
    {
        if (isset($this->stdErr)) {
            $this->stdErr->writeln('<options=reverse>' . strtoupper($label) . '</> ' . $message, $options);
        }
    }