‪TYPO3CMS  9.5
TYPO3\CMS\Core\Controller\ErrorPageController Class Reference

Public Member Functions

 __construct ()
 
string errorAction (string $title, string $message, int $severity=AbstractMessage::ERROR, int $errorCode=0)
 

Protected Attributes

TemplateView $view
 
int $severity = AbstractMessage::ERROR
 

Detailed Description

A class representing error messages shown on a page, rendered via fluid. Classic Example: "No pages are found on rootlevel"

Definition at line 30 of file ErrorPageController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Controller\ErrorPageController::__construct ( )

Sets up the view

Definition at line 45 of file ErrorPageController.php.

References TYPO3\CMS\Core\Core\Environment\getFrameworkBasePath().

Member Function Documentation

◆ errorAction()

string TYPO3\CMS\Core\Controller\ErrorPageController::errorAction ( string  $title,
string  $message,
int  $severity = AbstractMessage::ERROR,
int  $errorCode = 0 
)

Renders the view and returns the content

Parameters
string$title‪The title to be shown
string$message‪The message to be shown
int$severity‪The severity of the error, see AbstractMessage constants
int$errorCode‪The error code to be referenced
Returns
‪string the output of the view

Definition at line 67 of file ErrorPageController.php.

References TYPO3\CMS\Core\Controller\ErrorPageController\$severity, TYPO3\CMS\Core\Messaging\AbstractMessage\ERROR, TYPO3\CMS\Core\Utility\PathUtility\getAbsoluteWebPath(), TYPO3\CMS\Core\Core\Environment\getFrameworkBasePath(), TYPO3\CMS\Core\Messaging\AbstractMessage\INFO, TYPO3\CMS\Core\Messaging\AbstractMessage\NOTICE, TYPO3\CMS\Core\Messaging\AbstractMessage\OK, and TYPO3\CMS\Core\Messaging\AbstractMessage\WARNING.

Member Data Documentation

◆ $severity

int TYPO3\CMS\Core\Controller\ErrorPageController::$severity = AbstractMessage::ERROR
protected

The severity level

Definition at line 40 of file ErrorPageController.php.

Referenced by TYPO3\CMS\Core\Controller\ErrorPageController\errorAction().

◆ $view

TemplateView TYPO3\CMS\Core\Controller\ErrorPageController::$view
protected

The view object

Definition at line 35 of file ErrorPageController.php.