PHP Class yii\web\TooManyRequestsHttpException

Use this exception to indicate that a client has made too many requests in a given period of time. For example, you would throw this exception when 'throttling' an API user.
Since: 2.0
Author: Dan Schmidt ([email protected])
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.