TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Core\Error\Http\UnauthorizedException Class Reference
Inheritance diagram for TYPO3\CMS\Core\Error\Http\UnauthorizedException:
TYPO3\CMS\Core\Error\Http\AbstractClientErrorException TYPO3\CMS\Core\Error\Http\StatusException TYPO3\CMS\Core\Error\Exception TYPO3\CMS\Core\Exception t3lib_error_http_UnauthorizedException

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)
 
 getTitle ()
 
 getStatusHeaders ()
 

Protected Attributes

 $statusHeaders = array(\TYPO3\CMS\Core\Utility\HttpUtility::HTTP_STATUS_401)
 
 $title = 'Unauthorized (401)'
 
 $message = 'Accessing this page requires authorization.'
 
- Protected Attributes inherited from TYPO3\CMS\Core\Error\Http\StatusException
 $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! Exception for Error 401 - Unauthorized

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 UnauthorizedException.php.

Constructor & Destructor Documentation

◆ __construct()

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

Constructor for this Status Exception

Parameters
string$messageError Message
int$codeException Code

Definition at line 44 of file UnauthorizedException.php.

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

Member Data Documentation

◆ $message

TYPO3\CMS\Core\Error\Http\UnauthorizedException::$message = 'Accessing this page requires authorization.'
protected

◆ $statusHeaders

TYPO3\CMS\Core\Error\Http\UnauthorizedException::$statusHeaders = array(\TYPO3\CMS\Core\Utility\HttpUtility::HTTP_STATUS_401)
protected

Definition at line 26 of file UnauthorizedException.php.

◆ $title

TYPO3\CMS\Core\Error\Http\UnauthorizedException::$title = 'Unauthorized (401)'
protected

Definition at line 31 of file UnauthorizedException.php.