weaver.tweens¶
Module Contents¶
-
weaver.tweens.error_repr(http_err: Union[HTTPException, OWSException, Exception]) → str[source]¶ Returns a cleaned up representation string of the HTTP error, but with similar and even extended details 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]¶ A tween factory which produces a tween which transforms common exceptions into OWS specific exceptions.