public function UnauthorizedHttpException::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-kernel/Exception/UnauthorizedHttpException.php \Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException::__construct()
Constructor.
Parameters
string $challenge WWW-Authenticate challenge string:
string $message The internal exception message:
\Exception $previous The previous exception:
int $code The internal exception code:
Overrides HttpException::__construct
File
- vendor/symfony/ http-kernel/ Exception/ UnauthorizedHttpException.php, line 29 
Class
- UnauthorizedHttpException
- UnauthorizedHttpException.
Namespace
Symfony\Component\HttpKernel\ExceptionCode
public function __construct($challenge, $message = null, \Exception $previous = null, $code = 0) {
  $headers = array(
    'WWW-Authenticate' => $challenge,
  );
  parent::__construct(401, $message, $previous, $headers, $code);
}