rinvex/laravel-repositories

View on GitHub
src/Exceptions/RepositoryException.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

declare(strict_types=1);

namespace Rinvex\Repository\Exceptions;

use Exception;

class RepositoryException extends Exception
{
    public static function listNotFound($list, $object)
    {
        return new static('Given list "'.$list.'" not found in '.get_class($object).' class');
    }
}