‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Error\Http\ForbiddenException Class Reference
Inheritance diagram for TYPO3\CMS\Core\Error\Http\ForbiddenException:
TYPO3\CMS\Core\Error\Http\AbstractClientErrorException TYPO3\CMS\Core\Error\Http\StatusException TYPO3\CMS\Core\Error\Exception TYPO3\CMS\Core\Exception

Public Member Functions

 __construct ($message=null, $code=0)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Core\Error\Http\StatusException
 __construct ($statusHeaders, $message, $title='', $code=0)
 
 setTitle ($title)
 
string getTitle ()
 
array getStatusHeaders ()
 

Protected Attributes

array $statusHeaders = array( HttpUtility::HTTP_STATUS_403 )
 
string $title = 'Forbidden (403)'
 
string $message = 'You are not allowed to access this page.'
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Core\Error\Http\StatusException
array $statusHeaders
 
string $title = 'Oops, an error occurred!'
 

Detailed Description

Exception for Error 403 - Forbidden

Definition at line 23 of file ForbiddenException.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Error\Http\ForbiddenException::__construct (   $message = null,
  $code = 0 
)

Constructor for this Status Exception

Parameters
string$messageError Message
int$codeException Code

Definition at line 43 of file ForbiddenException.php.

References TYPO3\CMS\Core\Error\Http\ForbiddenException\$message.

Member Data Documentation

◆ $message

string TYPO3\CMS\Core\Error\Http\ForbiddenException::$message = 'You are not allowed to access this page.'
protected

◆ $statusHeaders

array TYPO3\CMS\Core\Error\Http\ForbiddenException::$statusHeaders = array( HttpUtility::HTTP_STATUS_403 )
protected

HTTP Status Header lines

Definition at line 27 of file ForbiddenException.php.

◆ $title

string TYPO3\CMS\Core\Error\Http\ForbiddenException::$title = 'Forbidden (403)'
protected

Title of the message

Definition at line 31 of file ForbiddenException.php.