TYPO3 CMS  TYPO3_6-2
UnauthorizedException.php
Go to the documentation of this file.
1 <?php
3 
22 
26  protected $statusHeaders = array(\TYPO3\CMS\Core\Utility\HttpUtility::HTTP_STATUS_401);
27 
31  protected $title = 'Unauthorized (401)';
32 
36  protected $message = 'Accessing this page requires authorization.';
37 
44  public function __construct($message = NULL, $code = 0) {
45  if (!empty($message)) {
46  $this->message = $message;
47  }
48  parent::__construct($this->statusHeaders, $this->message, $this->title, $code);
49  }
50 
51 }