‪TYPO3CMS  10.4
PageNotFoundException.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the TYPO3 CMS project.
5  *
6  * It is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License, either version 2
8  * of the License, or any later version.
9  *
10  * For the full copyright and license information, please read the
11  * LICENSE.txt file that was distributed with this source code.
12  *
13  * The TYPO3 project - inspiring people to share!
14  */
15 
17 
19 
24 {
29 
33  protected ‪$title = 'Page Not Found (404)';
34 
38  protected ‪$message = 'The page you tried to access was not found.';
39 
46  public function ‪__construct(‪$message = null, $code = 0)
47  {
48  if (!empty(‪$message)) {
49  $this->message = ‪$message;
50  }
51  parent::__construct($this->statusHeaders, $this->message, $this->title, $code);
52  }
53 }
‪TYPO3\CMS\Core\Utility\HttpUtility\HTTP_STATUS_404
‪const HTTP_STATUS_404
Definition: HttpUtility.php:57
‪TYPO3\CMS\Core\Error\Http
Definition: AbstractClientErrorException.php:16
‪TYPO3\CMS\Core\Error\Http\PageNotFoundException\$message
‪string $message
Definition: PageNotFoundException.php:35
‪TYPO3\CMS\Core\Error\Http\PageNotFoundException\__construct
‪__construct($message=null, $code=0)
Definition: PageNotFoundException.php:43
‪TYPO3\CMS\Core\Error\Http\AbstractClientErrorException
Definition: AbstractClientErrorException.php:22
‪TYPO3\CMS\Core\Error\Http\PageNotFoundException\$title
‪string $title
Definition: PageNotFoundException.php:31
‪TYPO3\CMS\Core\Error\Http\PageNotFoundException
Definition: PageNotFoundException.php:24
‪TYPO3\CMS\Core\Error\Http\PageNotFoundException\$statusHeaders
‪array $statusHeaders
Definition: PageNotFoundException.php:27
‪TYPO3\CMS\Core\Utility\HttpUtility
Definition: HttpUtility.php:24