‪TYPO3CMS  11.5
StatusException.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 {
28  protected ‪$statusHeaders;
29 
33  protected ‪$title = 'Oops, an error occurred!';
34 
43  public function ‪__construct(‪$statusHeaders, $message, ‪$title = '', $code = 0)
44  {
45  if (is_array(‪$statusHeaders)) {
46  $this->statusHeaders = ‪$statusHeaders;
47  } else {
48  $this->statusHeaders = [‪$statusHeaders];
49  }
50  $this->title = ‪$title ?: ‪$this->title;
51  parent::__construct($message, $code);
52  }
53 
59  public function ‪setTitle(‪$title)
60  {
61  $this->title = ‪$title;
62  }
63 
69  public function ‪getTitle()
70  {
71  return ‪$this->title;
72  }
73 
79  public function ‪getStatusHeaders()
80  {
82  }
83 }
‪TYPO3\CMS\Core\Error\Http\StatusException\__construct
‪__construct($statusHeaders, $message, $title='', $code=0)
Definition: StatusException.php:41
‪TYPO3\CMS\Core\Error\Http
Definition: AbstractClientErrorException.php:16
‪TYPO3\CMS\Core\Error\Http\StatusException\$statusHeaders
‪array $statusHeaders
Definition: StatusException.php:27
‪TYPO3\CMS\Core\Error\Http\StatusException\getTitle
‪string getTitle()
Definition: StatusException.php:67
‪TYPO3\CMS\Core\Error\Http\StatusException
Definition: StatusException.php:24
‪TYPO3\CMS\Core\Error\Http\StatusException\getStatusHeaders
‪array getStatusHeaders()
Definition: StatusException.php:77
‪TYPO3\CMS\Core\Error\Http\StatusException\setTitle
‪setTitle($title)
Definition: StatusException.php:57
‪TYPO3\CMS\Core\Error\Exception
Definition: Exception.php:21
‪TYPO3\CMS\Core\Error\Http\StatusException\$title
‪string $title
Definition: StatusException.php:31