Bug #58773

Improve NoMatchingRouteException

Added by Bastian Waidelich over 7 years ago. Updated over 7 years ago.

Status:
Accepted
Priority:
Should have
Category:
MVC - Routing
Target version:
-
Start date:
2014-05-13
Due date:
% Done:

0%

Estimated time:
PHP Version:
Has patch:
No
Complexity:

Description

Currently, when trying to create an URI but no matching route could be found, one only gets a very generic "Could not resolve a route and its corresponding URI for the given parameters." exception.
Because this exception is very common it should be improved so that the developer knows what to do about it.


Files

58773_before.png (34.5 KB) 58773_before.png Bastian Waidelich, 2014-05-13 15:59
58773_after.png (40.9 KB) 58773_after.png Bastian Waidelich, 2014-05-13 15:59
#1

Updated by Bastian Waidelich over 7 years ago

I started on a basic solution that suggests a route configuration if its missing:
Before:

Afterwards:

Unfortunately this needs a tweaked DebugExceptionHandler that can render the exception details as preformatted text.. otherwise the route configuration is not readable

Also available in: Atom PDF