exception_handlers¶
ASGI app exception handlers.
These are in addition to the exception handlers available in OPTIMADE Python tools. For more information see https://www.optimade.org/optimade-python-tools/api_reference/server/exception_handlers/.
request_validation_exception_handler(request, exc)
async
¶
Special handler if a RequestValidationError
comes from wrong POST
data
Source code in optimade_gateway/exception_handlers.py
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
|