ldc-arcadia-api/src/Application/Shared/Exceptions/NotFoundException.php

14 lines
275 B
PHP
Raw Normal View History

<?php
declare(strict_types=1);
namespace Application\Shared\Exceptions;
final class NotFoundException extends \RuntimeException
{
public static function forEntity(string $entity, string $id): self
{
return new self("{$entity} '{$id}' not found.");
}
}