Class BadRequestException
Represents an HTTP 400 error.
- Exception implements Throwable
- RuntimeException
- HttpException
- BadRequestException
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 = 400 )
Constructor
Parameters
- string $message optional null
- If no message is given 'Bad Request' will be the message
- string $code optional 400
- Status code, defaults to 400
Overrides
Exception::__construct()