<?php

namespace App\Modules\Versioner\Domain;

use App\Modules\Shared\Domain\ErrorDictionary;
use App\Modules\Shared\Exceptions\BasicRequestException;

class VersionerOutOfVersion extends BasicRequestException
{
    public function __construct()
    {
        parent::__construct(
            400,
            ErrorDictionary::ERRORS['API']['VERSIONER']['VERSIONER_CHECK']['VERSIONER_OUT_OF_VERSION'],
            'Existe una versión más reciente del elemento'
        );
    }
}
