- excview_tween_factory(handler, registry)¶
A tween factory which produces a tween that catches an exception raised by downstream tweens (or the main Pyramid request handler) and, if possible, converts it into a Response using an exception view.
Changed in version 1.9: The
request.responsewill be remain unchanged even if the tween handles an exception. Previously it was deleted after handling an exception.
request.exc_infoare only set if the tween handles an exception and returns a response otherwise they are left at their original values.
Constant representing the main Pyramid handling function, for use in
Constant representing the request ingress, for use in