swissvotes.views.exceptions =========================== .. py:module:: swissvotes.views.exceptions Functions --------- .. autoapisummary:: swissvotes.views.exceptions.handle_forbidden swissvotes.views.exceptions.handle_notfound Module Contents --------------- .. py:function:: handle_forbidden(self: webob.exc.HTTPForbidden, request: onegov.swissvotes.request.SwissvotesRequest) -> onegov.core.types.RenderData Displays a nice HTTP 403 error. .. py:function:: handle_notfound(self: webob.exc.HTTPNotFound, request: onegov.swissvotes.request.SwissvotesRequest) -> onegov.core.types.RenderData Displays a nice HTTP 404 error.