Completed
Push — fix-numbervalidator-comma-deci... ( 08054b...a7f0a3 )
by Alexander
40:41 queued 37:41
created

RangeNotSatisfiableHttpException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 13
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
/**
3
 * @link http://www.yiiframework.com/
4
 * @copyright Copyright (c) 2008 Yii Software LLC
5
 * @license http://www.yiiframework.com/license/
6
 */
7
8
namespace yii\web;
9
10
/**
11
 * RangeNotSatisfiableHttpException represents an exception caused by an improper request of the end-user.
12
 * This exception thrown when the requested range is not satisfiable: the client asked for a portion of
13
 * the file (byte serving), but the server cannot supply that portion. For example, if the client asked for
14
 * a part of the file that lies beyond the end of the file.
15
 *
16
 * Throwing an RangeNotSatisfiableHttpException like in the following example will result in the error page
17
 * with error 416 to be displayed.
18
 *
19
 * @author Zalatov Alexander <[email protected]>
20
 *
21
 * @since 2.0.11
22
 */
23
class RangeNotSatisfiableHttpException extends HttpException
24
{
25
    /**
26
     * Constructor.
27
     * @param string $message error message
28
     * @param integer $code error code
29
     * @param \Exception $previous The previous exception used for the exception chaining.
30
     */
31 4
    public function __construct($message = null, $code = 0, \Exception $previous = null)
32
    {
33 4
        parent::__construct(416, $message, $code, $previous);
34 4
    }
35
}
36