weaver.tweens
¶
Module Contents¶
-
weaver.tweens.
error_repr
(http_err: Union[pyramid.httpexceptions.HTTPException, weaver.owsexceptions.OWSException, Exception]) → str[source]¶ Returns a cleaned up representation string of the HTTP error.
Similar and even extended details relative to the HTTP error message are added to facilitate later debugging.
-
weaver.tweens.
ows_response_tween
(request, handler)[source]¶ Tween that wraps any API request with appropriate dispatch of error conversion to handle formatting.
-
weaver.tweens.
ows_response_tween_factory_excview
(handler, registry)[source]¶ Tween factory which produces a tween which transforms common exceptions into OWS specific exceptions.