TYPO3 CMS  TYPO3_7-6
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\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\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

HTTP Status Exception

Definition at line 20 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 40 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 77 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 67 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