MCPcopy
hub / github.com/encode/starlette / NoMatchFound

Class NoMatchFound

starlette/routing.py:29–37  ·  view source on GitHub ↗

Raised by `.url_for(name, **path_params)` and `.url_path_for(name, **path_params)` if no matching route exists.

Source from the content-addressed store, hash-verified

27
28
29class 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
40class Match(Enum):

Callers 5

url_path_forMethod · 0.85
url_path_forMethod · 0.85
url_path_forMethod · 0.85
url_path_forMethod · 0.85
url_path_forMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected