2026-08-12 15:45:29 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
2026-08-17 11:18:53 +02:00
|
|
|
namespace Application\Shared\Exceptions;
|
2026-08-12 15:45:29 +02:00
|
|
|
|
2026-08-13 16:24:08 +02:00
|
|
|
final class NotFoundException extends \RuntimeException
|
2026-08-12 15:45:29 +02:00
|
|
|
{
|
|
|
|
|
public static function forEntity(string $entity, string $id): self
|
|
|
|
|
{
|
|
|
|
|
return new self("{$entity} '{$id}' not found.");
|
|
|
|
|
}
|
|
|
|
|
}
|