Checks and registers a multi line error.

@throws CodeWarning

@return void
489131
private function checkAndRegisterNoMultiLine(): void
    {
        $docCommentPos = $this->getDocCommentPos();
        $openingToken = $this->tokens[$docCommentPos];
        $closingToken = $this->tokens[$openingToken['comment_closer']];

        if ($openingToken['line'] === $closingToken['line']) {
            $tokenIdent = $this->getTokenName();

            $exception = (new CodeError(
                static::CODE_NO_MULTI_LINE_DOC_BLOCK_PREFIX . ucfirst($tokenIdent),
                self::MESSAGE_NO_MULTI_LINE_DOC_BLOCK_PREFIX,
                $docCommentPos
            ))->setPayload([lcfirst($tokenIdent)]);

            throw $exception;
        }
    }
876048
private function validateSummaryExistence(): self
    {
        $summaryPos = $this->getSummaryPosition();

        if (!$summaryPos) {
            throw new CodeWarning(
                static::CODE_NO_SUMMARY,
                self::MESSAGE_NO_SUMMARY,
                $this->getDocCommentPos()
            );
        }

        return $this;
    }
817856
public static function popErrorMask()
    {
        $lastMask = array_pop(self::$logLevelStack);
        error_reporting($lastMask[0]);
        self::$logMask = $lastMask[1];
    }
40229
protected function areCodeValid(): bool
    {
        return
            Dispatcher::NOT_FOUND === DispatcherInterface::ROUTE_NOT_FOUND &&
            Dispatcher::FOUND === DispatcherInterface::ROUTE_FOUND &&
            Dispatcher::METHOD_NOT_ALLOWED === DispatcherInterface::ROUTE_METHOD_NOT_ALLOWED;
    }
252441
protected function init() {
		$errorMask = E_ERROR | E_CORE_ERROR | E_COMPILE_ERROR |
		             E_PARSE | E_USER_ERROR | E_RECOVERABLE_ERROR;
		
		set_error_handler(function($type, $message, $file, $line) use($errorMask) {
			$this->errors[] = [
				'type'    => $type,
				'message' => $message,
				'file'    => $file,
				'line'    => $line
			];
			
			if ($errorMask & $type) {
				$this->hasError = true;
			}
			 
			return true;
		});
	}
1340590
def error(self, line_number, offset, text, check):
        """"""
        code = super(StandardReport, self).error(line_number, offset,
                                                 text, check)
        if code and (self.counters[code] == 1 or self._repeat):
            self._deferred_print.append(
                (line_number, offset, code, text[5:], check.__doc__))
        return code
470586
public function HTML_QuickForm_Error($code = QUICKFORM_ERROR, $mode = PEAR_ERROR_RETURN,
                         $level = E_USER_NOTICE, $debuginfo = null) {
        debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
        self::__construct($code, $mode, $level, $debuginfo);
    }
127710
protected function validate_data() {
        if (self::$preventcreatecall) {
            throw new \coding_exception('cannot call submission_form_viewed::create() directly, use submission_form_viewed::create_from_user() instead.');
        }

        parent::validate_data();

        if (!isset($this->relateduserid)) {
            throw new \coding_exception('The \'relateduserid\' must be set.');
        }

        if (!isset($this->other['assignid'])) {
            throw new \coding_exception('The \'assignid\' value must be set in other.');
        }
    }
1254540
function warning(lines) {
  lines.unshift('');    // Extra whitespace at the start.
  lines.push('');       // Extra whitespace at the end.

  lines.forEach(function each(line) {
    console.error('asset-bundle:warning', line);
  });
}
1002351
private function registerErrorRenderer()
    {
        if ($this->kernel()->isCli()) {
            $this->container()->bind(ErrorRendererContract::class, ConsoleErrorRenderer::class);
        } else {
            $this->container()->bind(ErrorRendererContract::class, HttpErrorRenderer::class);
        }
    }
358176
function flushLinebreaks() {
    if ($this->lineBreaks && !empty($this->output)) {
      $this->out(str_repeat("\n".$this->indent, $this->lineBreaks), true);
    }
    $this->lineBreaks = 0;
  }
1161785
public static function error_multi_line( $message_lines ) {
		if ( ! isset( self::get_runner()->assoc_args['completions'] ) && is_array( $message_lines ) ) {
			self::$logger->error_multi_line( array_map( array( __CLASS__, 'error_to_string' ), $message_lines ) );
		}
	}
1094334
function handleWarning(reason, position, code) {
    if (code !== 3) {
      ctx.file.message(reason, position)
    }
  }
7200
protected function registerWorkerErrorCallback()
    {
        $this->swooleServer->on('WorkerError', function ($server, $workerId, $workerPid, $exitCode, $signal) {
            $this->reportWorkerError($workerId, $workerPid, $exitCode, $signal);

            $this->events->dispatch(new Events\WorkerError($this, $workerId, $workerPid, $exitCode, $signal));

            $this->dispatchEvent('WorkerError', $this, $workerId, $workerPid, $exitCode, $signal);
        });
    }
217629
protected function validate_data() {
        parent::validate_data();

        if (!in_array($this->other['cmielement'],
                array('cmi.completion_status', 'cmi.core.lesson_status', 'cmi.success_status'))) {
            throw new \coding_exception(
                "The 'cmielement' must represents a valid CMI status element ({$this->other['cmielement']}).");
        }

        if (!in_array($this->other['cmivalue'],
                array('passed', 'completed', 'failed', 'incomplete', 'browsed', 'not attempted', 'unknown'))) {
            throw new \coding_exception(
                "The 'cmivalue' must represents a valid CMI status value ({$this->other['cmivalue']}).");
        }
    }
1180384
public void validate() {
        check("firstLine", this.firstLine);
        check("beforeEachLine", this.beforeEachLine);
        check("endLine", this.endLine);
        check("firstLineDetectionPattern", this.firstLineDetectionPattern);
        check("lastLineDetectionPattern", this.lastLineDetectionPattern);
        check("isMultiline", this.isMultiline);
        check("allowBlankLines", this.allowBlankLines);
        // skip line can be null
    }
556635
protected function validate_data() {
        parent::validate_data();

        if (!isset($this->other['name'])) {
            throw new \coding_exception('The \'name\' value must be set in other.');
        }
        if (!array_key_exists('plugin', $this->other)) {
            throw new \coding_exception('The \'plugin\' value must be set in other.');
        }
        if (!array_key_exists('oldvalue', $this->other)) {
            throw new \coding_exception('The \'oldvalue\' value must be set in other.');
        }
        if (!array_key_exists('value', $this->other)) {
            throw new \coding_exception('The \'value\' value must be set in other.');
        }
    }