PHP Class yii\web\RangeNotSatisfiableHttpException

This exception thrown when the requested range is not satisfiable: the client asked for a portion of the file (byte serving), but the server cannot supply that portion. For example, if the client asked for a part of the file that lies beyond the end of the file. Throwing an RangeNotSatisfiableHttpException like in the following example will result in the error page with error 416 to be displayed.
Since: 2.0.11
Author: Zalatov Alexander ([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.