PageNotFoundException extends AbstractClientErrorException

Exception for Error 404 - Page Not Found

Table of Contents

Properties

$message  : string
$statusHeaders  : array<string|int, mixed>
$title  : string

Methods

__construct()  : mixed
Constructor for this Status Exception
getStatusHeaders()  : array<string|int, mixed>
Getter for the Status Header.
getTitle()  : string
Getter for the title.
setTitle()  : mixed
Setter for the title.

Properties

$message

protected string $message = 'The page you tried to access was not found.'

Error Message

$statusHeaders

protected array<string|int, mixed> $statusHeaders = [\TYPO3\CMS\Core\Utility\HttpUtility::HTTP_STATUS_404]

HTTP Status Header lines

$title

protected string $title = 'Page Not Found (404)'

Title of the message

Methods

__construct()

Constructor for this Status Exception

public __construct([string $message = null ][, int $code = 0 ]) : mixed
Parameters
$message : string = null

Error Message

$code : int = 0

Exception Code

getStatusHeaders()

Getter for the Status Header.

public getStatusHeaders() : array<string|int, mixed>
Return values
array<string|int, mixed>

getTitle()

Getter for the title.

public getTitle() : string
Return values
string

setTitle()

Setter for the title.

public setTitle(string $title) : mixed
Parameters
$title : string

        
On this page

Search results