ldc-arcadia-api/src/Application/Exceptions/NotFoundException.php
Jérémy Munsch 6ba04fe009
feat(exceptions): add NotFoundException for entity handling
Introduces a NotFoundException to standardize error handling for missing entities.
2026-08-13 16:24:08 +02:00

13 lines
268 B
PHP

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