Class MethodNotAllowedException
Represents an HTTP 405 error.
- Exception implements Throwable
- RuntimeException
- HttpException
- MethodNotAllowedException
Package: Cake\Error
Copyright: Copyright 2005-2011, 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-2011, 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 = 405 )
Constructor
Parameters
- string $message optional null
- If no message is given 'Method Not Allowed' will be the message
- string $code optional 405
- Status code, defaults to 405
Overrides
Exception::__construct()