Class UnauthorizedException
Represents an HTTP 401 error.
- Exception implements Throwable
- RuntimeException
- HttpException
- UnauthorizedException
Package: Cake\Error
Copyright: Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
License: License (http://www.opensource.org/licenses/mit-license.php)
Location: Cake/Error/exceptions.php
Copyright: Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
License: License (http://www.opensource.org/licenses/mit-license.php)
Location: Cake/Error/exceptions.php
Inherited Properties
-
code
,file
,line
,message
Method Summary
-
__construct() public
Constructor
Method Detail
__construct() public ΒΆ
__construct( string $message = null , string $code = 401 )
Constructor
Parameters
- string $message optional null
- If no message is given 'Unauthorized' will be the message
- string $code optional 401
- Status code, defaults to 401
Overrides
Exception::__construct()