aboutsummaryrefslogtreecommitdiff
path: root/lib/classes/JsonApi/Errors/HttpRangeException.php
blob: 077d14cda69d0c508b79fa0b96b3bc51d80d215b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php

namespace JsonApi\Errors;

use Neomerx\JsonApi\Schema\Error;
use Neomerx\JsonApi\Exceptions\JsonApiException;

/**
 * TODO.
 */
class HttpRangeException extends JsonApiException
{
    /**
     * TODO.
     */
    public function __construct($error = null)
    {
        $errorObject = new Error(null, null, null, 416, null, 'Requested Range Not Satisfiable.', $error);
        parent::__construct($errorObject, 416);
    }
}