Files
LesRecettesDePapis/src/Exceptions/InvalidRouteException.php

15 lines
322 B
PHP
Raw Normal View History

2026-03-20 11:40:11 +01:00
<?php
namespace App\Exceptions;
class InvalidRouteException extends \Exception {
private string $clientRoute;
public function __construct(string $clientRoute)
{
$this->clientRoute = $clientRoute;
$message = "{$clientRoute} doesn't exist";
parent::__construct($message, 404);
}
}