‪TYPO3CMS  ‪main
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 TYPO3\CMS\Core\Error\Http\AbstractClientErrorException TYPO3\CMS\Core\Error\Http\AbstractServerErrorException TYPO3\CMS\Backend\Exception\BackendAccessDeniedException TYPO3\CMS\Backend\Exception\BackendLockedException TYPO3\CMS\Core\Error\Http\BadRequestException TYPO3\CMS\Core\Error\Http\ForbiddenException TYPO3\CMS\Core\Error\Http\PageNotFoundException TYPO3\CMS\Core\Error\Http\UnauthorizedException TYPO3\CMS\Core\RateLimiter\RequestRateLimitedException TYPO3\CMS\Core\Error\Http\InternalServerErrorException TYPO3\CMS\Core\Error\Http\ServiceUnavailableException

Public Member Functions

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

Protected Attributes

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

Detailed Description

HTTP Status Exception

Todo:
‪: Rename to AbstractStatusException and declare abstract

Definition at line 25 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$statusHeaders‪HTTP Status header line(s)
string$title‪Title of the error message
string$messageError Message
int$codeException Code

Definition at line 43 of file StatusException.php.

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

Member Function Documentation

◆ getStatusHeaders()

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

Getter for the Status Header.

Returns
‪array

Definition at line 79 of file StatusException.php.

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

◆ getTitle()

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

Getter for the title.

Returns
‪string

Definition at line 69 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

Definition at line 59 of file StatusException.php.

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

Member Data Documentation

◆ $statusHeaders

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

◆ $title

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