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

Function exc

tests/test_routing.py:924–925  ·  view source on GitHub ↗
(request: Request)

Source from the content-addressed store, hash-verified

922 test_client_factory: TestClientFactory,
923) -> None:
924 def exc(request: Request) -> None:
925 raise Exception("Exc")
926
927 sub_app = Starlette(routes=[Route("/", exc)])
928 app = Starlette(routes=[Mount("/sub", app=sub_app)])

Callers

nothing calls this directly

Calls 1

HTTPExceptionClass · 0.90

Tested by

no test coverage detected