MCPcopy Index your code
hub / github.com/OpenBMB/ChatDev / handle_validation_error

Function handle_validation_error

utils/error_handler.py:27–29  ·  view source on GitHub ↗

Handle validation errors.

(request: Request, exc: ValidationError)

Source from the content-addressed store, hash-verified

25
26
27async def handle_validation_error(request: Request, exc: ValidationError) -> JSONResponse:
28 """Handle validation errors."""
29 return await handle_mac_exception(request, exc)
30
31
32async def handle_security_error(request: Request, exc: SecurityError) -> JSONResponse:

Callers

nothing calls this directly

Calls 1

handle_mac_exceptionFunction · 0.85

Tested by

no test coverage detected