UnauthorizedException extends AbstractClientErrorException
Exception for Error 401 - Unauthorized
Table of Contents
Properties
- $message : string
- $statusHeaders : array<string|int, mixed>
- $title : string
Methods
- __construct() : mixed
- Constructor for this Status Exception
- getStatusHeaders() : array<string|int, mixed>
- Getter for the Status Header.
- getTitle() : string
- Getter for the title.
- setTitle() : mixed
- Setter for the title.
Properties
$message
protected
string
$message
= 'Accessing this page requires authorization.'
Error Message
$statusHeaders
protected
array<string|int, mixed>
$statusHeaders
= [\TYPO3\CMS\Core\Utility\HttpUtility::HTTP_STATUS_401]
HTTP Status Header lines
$title
protected
string
$title
= 'Unauthorized (401)'
Title of the message
Methods
__construct()
Constructor for this Status Exception
public
__construct([string $message = null ][, int $code = 0 ]) : mixed
Parameters
- $message : string = null
-
Error Message
- $code : int = 0
-
Exception Code
getStatusHeaders()
Getter for the Status Header.
public
getStatusHeaders() : array<string|int, mixed>
Return values
array<string|int, mixed>getTitle()
Getter for the title.
public
getTitle() : string
Return values
stringsetTitle()
Setter for the title.
public
setTitle(string $title) : mixed
Parameters
- $title : string