<?php

namespace Velis\Model\Exceptions;

use Velis\Exception;
use Velis\Lang;

class CircularReferenceException extends Exception
{
    public function __construct(?string $message = null, $code = 0, $previous = null, $debugInfo = null)
    {
        $message ??= Lang::get('GENERAL_HIERARCHICAL_CIRCULAR_REFERENCE');
        parent::__construct($message, $code, $previous, $debugInfo);
    }
}
