TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Core\Error\Http\StatusException Class Reference
Inheritance diagram for TYPO3\CMS\Core\Error\Http\StatusException:
TYPO3\CMS\Core\Error\Exception TYPO3\CMS\Core\Exception t3lib_error_http_StatusException TYPO3\CMS\Core\Error\Http\AbstractClientErrorException TYPO3\CMS\Core\Error\Http\AbstractServerErrorException t3lib_error_http_AbstractClientErrorException TYPO3\CMS\Core\Error\Http\BadRequestException TYPO3\CMS\Core\Error\Http\ForbiddenException TYPO3\CMS\Core\Error\Http\PageNotFoundException TYPO3\CMS\Core\Error\Http\UnauthorizedException t3lib_error_http_AbstractServerErrorException TYPO3\CMS\Core\Error\Http\ServiceUnavailableException t3lib_error_http_BadRequestException t3lib_error_http_ForbiddenException t3lib_error_http_PageNotFoundException t3lib_error_http_UnauthorizedException t3lib_error_http_ServiceUnavailableException

Public Member Functions

 __construct ($statusHeaders, $message, $title='', $code=0)
 
 setTitle ($title)
 
 getTitle ()
 
 getStatusHeaders ()
 

Protected Attributes

 $statusHeaders
 
 $title = 'Oops, an error occurred!'
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! HTTP Status Exception

Author
Steffen Gebert steff.nosp@m.en.g.nosp@m.ebert.nosp@m.@typ.nosp@m.o3.or.nosp@m.g

Definition at line 21 of file StatusException.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Error\Http\StatusException::__construct (   $statusHeaders,
  $message,
  $title = '',
  $code = 0 
)

Constructor for this Status Exception

Parameters
string | array$statusHeadersHTTP Status header line(s)
string$titleTitle of the error message
string$messageError Message
int$codeException Code

Definition at line 41 of file StatusException.php.

References TYPO3\CMS\Core\Error\Http\StatusException\$statusHeaders, and TYPO3\CMS\Core\Error\Http\StatusException\$title.

Member Function Documentation

◆ getStatusHeaders()

TYPO3\CMS\Core\Error\Http\StatusException::getStatusHeaders ( )

Getter for the Status Header.

Returns
string

Definition at line 75 of file StatusException.php.

References TYPO3\CMS\Core\Error\Http\StatusException\$statusHeaders.

◆ getTitle()

TYPO3\CMS\Core\Error\Http\StatusException::getTitle ( )

Getter for the title.

Returns
string

Definition at line 66 of file StatusException.php.

References TYPO3\CMS\Core\Error\Http\StatusException\$title.

◆ setTitle()

TYPO3\CMS\Core\Error\Http\StatusException::setTitle (   $title)

Setter for the title.

Parameters
string$title
Returns
void

Definition at line 57 of file StatusException.php.

References TYPO3\CMS\Core\Error\Http\StatusException\$title.

Member Data Documentation

◆ $statusHeaders

TYPO3\CMS\Core\Error\Http\StatusException::$statusHeaders
protected

◆ $title

TYPO3\CMS\Core\Error\Http\StatusException::$title = 'Oops, an error occurred!'
protected