‪TYPO3CMS  ‪main
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 
26 {
30  protected ‪$statusHeaders;
31 
35  protected ‪$title = 'Oops, an error occurred!';
36 
45  public function ‪__construct(‪$statusHeaders, $message, ‪$title = '', $code = 0)
46  {
47  if (is_array(‪$statusHeaders)) {
48  $this->statusHeaders = ‪$statusHeaders;
49  } else {
50  $this->statusHeaders = [‪$statusHeaders];
51  }
52  $this->title = ‪$title ?: ‪$this->title;
53  parent::__construct($message, $code);
54  }
55 
61  public function ‪setTitle(‪$title)
62  {
63  $this->title = ‪$title;
64  }
65 
71  public function ‪getTitle()
72  {
73  return ‪$this->title;
74  }
75 
81  public function ‪getStatusHeaders()
82  {
84  }
85 }
‪TYPO3\CMS\Core\Error\Http\StatusException\__construct
‪__construct($statusHeaders, $message, $title='', $code=0)
Definition: StatusException.php:43
‪TYPO3\CMS\Core\Error\Http
Definition: AbstractClientErrorException.php:16
‪TYPO3\CMS\Core\Error\Http\StatusException\$statusHeaders
‪array $statusHeaders
Definition: StatusException.php:29
‪TYPO3\CMS\Core\Error\Http\StatusException\getTitle
‪string getTitle()
Definition: StatusException.php:69
‪TYPO3\CMS\Core\Error\Http\StatusException
Definition: StatusException.php:26
‪TYPO3\CMS\Core\Error\Http\StatusException\getStatusHeaders
‪array getStatusHeaders()
Definition: StatusException.php:79
‪TYPO3\CMS\Core\Error\Http\StatusException\setTitle
‪setTitle($title)
Definition: StatusException.php:59
‪TYPO3\CMS\Core\Error\Exception
Definition: Exception.php:21
‪TYPO3\CMS\Core\Error\Http\StatusException\$title
‪string $title
Definition: StatusException.php:33