connexion.middleware.exceptions

Module Contents

Classes

ExceptionMiddleware

Subclass of starlette ExceptionMiddleware to change handling of HTTP exceptions to

class connexion.middleware.exceptions.ExceptionMiddleware(*args, **kwargs)

Bases: starlette.exceptions.ExceptionMiddleware

Subclass of starlette ExceptionMiddleware to change handling of HTTP exceptions to existing connexion behavior.

problem_handler(self, _, exception: connexion.exceptions.ProblemException)
http_exception(self, request: starlette.requests.Request, exc: starlette.exceptions.HTTPException) starlette.responses.Response