Neomerx\JsonApi\Exceptions\ErrorCollection::addResourceError PHP Method

addResourceError() protected method

protected addResourceError ( string $title, string $pointer, string | null $detail = null, integer | string | null $status = null, integer | string | null $idx = null, Neomerx\JsonApi\Contracts\Document\LinkInterface $aboutLink = null, integer | string | null $code = null, mixed | null $meta = null )
$title string
$pointer string
$detail string | null
$status integer | string | null
$idx integer | string | null
$aboutLink Neomerx\JsonApi\Contracts\Document\LinkInterface
$code integer | string | null
$meta mixed | null
    protected function addResourceError($title, $pointer, $detail = null, $status = null, $idx = null, LinkInterface $aboutLink = null, $code = null, $meta = null)
    {
        $source = [Error::SOURCE_POINTER => $pointer];
        $error = new Error($idx, $aboutLink, $status, $code, $title, $detail, $source, $meta);
        $this->add($error);
        return $this;
    }