Skip to content
docsv0.1.0

RouteNotFoundException

Thrown by {@see \Milpa\Http\Routing\UrlGeneratorInterface::generate()} for a route name that was never registered. A match miss is NOT this exception — it is {@see \Milpa\Http\Routing\RouteResult::notFound()}; this is generation-only (a bug in the caller).

RouteNotFoundException::forName()

public static function forName(string $name): self

Build the exception for an unknown route name.

Parameters

Parameters of forName()
NameTypeDescription
$namestring