‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Error\Http\PageNotFoundException Class Reference
Inheritance diagram for TYPO3\CMS\Core\Error\Http\PageNotFoundException:
TYPO3\CMS\Core\Error\Http\AbstractClientErrorException TYPO3\CMS\Core\Error\Http\StatusException TYPO3\CMS\Core\Error\Exception TYPO3\CMS\Core\Exception TYPO3\CMS\Core\Error\Http\ShortcutTargetPageNotFoundException

Public Member Functions

 __construct ($message=null, $code=0)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Core\Error\Http\StatusException
 __construct ($statusHeaders, $message, $title='', $code=0)
 
 setTitle ($title)
 
string getTitle ()
 
array getStatusHeaders ()
 

Protected Attributes

array $statusHeaders = array( HttpUtility::HTTP_STATUS_404 )
 
string $title = 'Page Not Found (404)'
 
string $message = 'The page you tried to access was not found.'
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Core\Error\Http\StatusException
array $statusHeaders
 
string $title = 'Oops, an error occurred!'
 

Detailed Description

Exception for Error 404 - Page Not Found

Definition at line 23 of file PageNotFoundException.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Error\Http\PageNotFoundException::__construct (   $message = null,
  $code = 0 
)

Constructor for this Status Exception

Parameters
string$messageError Message
int$codeException Code

Definition at line 43 of file PageNotFoundException.php.

References TYPO3\CMS\Core\Error\Http\PageNotFoundException\$message.

Member Data Documentation

◆ $message

string TYPO3\CMS\Core\Error\Http\PageNotFoundException::$message = 'The page you tried to access was not found.'
protected

◆ $statusHeaders

array TYPO3\CMS\Core\Error\Http\PageNotFoundException::$statusHeaders = array( HttpUtility::HTTP_STATUS_404 )
protected

HTTP Status Header lines

Definition at line 27 of file PageNotFoundException.php.

◆ $title

string TYPO3\CMS\Core\Error\Http\PageNotFoundException::$title = 'Page Not Found (404)'
protected

Title of the message

Definition at line 31 of file PageNotFoundException.php.