PHP Class yii\web\BadRequestHttpException

Use this exception to represent a generic client error. In many cases, there may be an HTTP exception that more precisely describes the error. In that case, consider using the more precise exception to provide the user with additional information.
Inheritance: extends HttpException
Show file Open project: yiisoft/yii2

Public Methods

Method Description
__construct ( string $message = null, integer $code, Exception $previous = null ) Constructor.

Method Details

__construct() public method

Constructor.
public __construct ( string $message = null, integer $code, Exception $previous = null )
$message string error message
$code integer error code
$previous Exception The previous exception used for the exception chaining.