MCPcopy Create free account
hub / github.com/etesync/server / custom_exception_handler

Function custom_exception_handler

etebase_server/fastapi/main.py:76–77  ·  view source on GitHub ↗
(request: Request, exc: CustomHttpException)

Source from the content-addressed store, hash-verified

74
75 @app.exception_handler(CustomHttpException)
76 async def custom_exception_handler(request: Request, exc: CustomHttpException):
77 return MsgpackResponse(status_code=exc.status_code, content=exc.as_dict)
78
79 @app.exception_handler(RequestValidationError)
80 async def validation_exception_handler(request: Request, exc: RequestValidationError):

Callers

nothing calls this directly

Calls 1

MsgpackResponseClass · 0.85

Tested by

no test coverage detected