Raised by `.url_for(name, **path_params)` and `.url_path_for(name, **path_params)` if no matching route exists.
| 27 | |
| 28 | |
| 29 | class NoMatchFound(Exception): |
| 30 | """ |
| 31 | Raised by `.url_for(name, **path_params)` and `.url_path_for(name, **path_params)` |
| 32 | if no matching route exists. |
| 33 | """ |
| 34 | |
| 35 | def __init__(self, name: str, path_params: dict[str, Any]) -> None: |
| 36 | params = ", ".join(list(path_params.keys())) |
| 37 | super().__init__(f'No route exists for name "{name}" and params "{params}".') |
| 38 | |
| 39 | |
| 40 | class Match(Enum): |
no outgoing calls
no test coverage detected