aboutsummaryrefslogtreecommitdiff
path: root/lib/classes/JsonApi/Errors/UnprocessableEntityException.php
blob: 46d5ba71a3d7e24f7992dc58cf6e10d91bbf5eae (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 UnprocessableEntityException extends JsonApiException
{
    /**
     * TODO.
     */
    public function __construct($detail = null, ?array $source = null)
    {
        $error = new Error(null, null, null, 422, null, 'Unprocesssable Entity', $detail, $source);
        parent::__construct($error, 422);
    }
}