ldc-arcadia-api/src/Domain/Exceptions/NotFoundException.php

14 lines
262 B
PHP
Raw Normal View History

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