aboutsummaryrefslogtreecommitdiff
path: root/lib/classes/JsonApi/Errors/RecordNotFoundException.php
blob: 4cf0cb952cba5b3058490c1167e324262381a612 (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 RecordNotFoundException extends JsonApiException
{
    /**
     * TODO.
     */
    public function __construct($error = null)
    {
        $errorObject = new Error(null, null, null, 404, null, 'Not Found', $error);
        parent::__construct($errorObject, 404);
    }
}