<?php

namespace Velis\Model\RelationLoader\Exceptions;

use Velis\Exception;

class CannotLoadRelatedModelsException extends Exception
{
    public function __construct($relatedModel, $code = null, $previous = null, $debugInfo = null)
    {
        $message = "It is not possible to fetch entries of model `$relatedModel`. Method was ::listAll() not found.";

        parent::__construct($message, $code, $previous, $debugInfo);
    }
}
