DmitryDulepov\Realurl\Decoder\UrlDecoder::throw404 PHP Method

throw404() protected method

Throws a 404 error with the corresponding message.
protected throw404 ( string $errorMessage ) : void
$errorMessage string
return void
    protected function throw404($errorMessage)
    {
        // TODO Write to our own error log here
        // Set language to allow localized error pages
        if (MathUtility::canBeInterpretedAsInteger($this->detectedLanguageId)) {
            $_GET['L'] = $this->detectedLanguageId;
        }
        $this->caller->pageNotFoundAndExit($errorMessage);
    }