:mod:`weaver.owsexceptions` =========================== .. py:module:: weaver.owsexceptions .. autoapi-nested-parse:: OWSExceptions are based on pyramid.httpexceptions. See also: https://github.com/geopython/pywps/blob/master/pywps/exceptions.py Module Contents --------------- .. py:exception:: OWSException(detail=None, value=None, **kw) Bases: :class:`pyramid.response.Response`, :class:`Exception` .. attribute:: code :annotation: = NoApplicableCode .. attribute:: value .. attribute:: locator :annotation: = NoApplicableCode .. attribute:: explanation :annotation: = Unknown Error .. attribute:: page_template .. attribute:: wsgi_response .. attribute:: exception .. staticmethod:: json_formatter(status, body, title, environ) .. method:: prepare(self, environ) .. py:exception:: OWSAccessForbidden(*args, **kwargs) Bases: :class:`weaver.owsexceptions.OWSException` .. attribute:: locator :annotation: = AccessUnauthorized .. attribute:: explanation :annotation: = Access to this service is unauthorized. .. py:exception:: OWSNotFound(*args, **kwargs) Bases: :class:`weaver.owsexceptions.OWSException` .. attribute:: locator :annotation: = NotFound .. attribute:: explanation :annotation: = This resource does not exist. .. py:exception:: OWSNotAcceptable(*args, **kwargs) Bases: :class:`weaver.owsexceptions.OWSException` .. attribute:: locator :annotation: = NotAcceptable .. attribute:: explanation :annotation: = Access to this service failed. .. py:exception:: OWSNoApplicableCode(*args, **kwargs) Bases: :class:`weaver.owsexceptions.OWSException` WPS Bad Request Exception .. attribute:: code :annotation: = NoApplicableCode .. attribute:: locator :annotation: = .. attribute:: explanation :annotation: = Parameter value is missing .. py:exception:: OWSMissingParameterValue(*args, **kwargs) Bases: :class:`weaver.owsexceptions.OWSException` MissingParameterValue WPS Exception .. attribute:: code :annotation: = MissingParameterValue .. attribute:: locator :annotation: = .. attribute:: explanation :annotation: = Parameter value is missing .. py:exception:: OWSInvalidParameterValue(*args, **kwargs) Bases: :class:`weaver.owsexceptions.OWSException` InvalidParameterValue WPS Exception .. attribute:: code :annotation: = InvalidParameterValue .. attribute:: locator :annotation: = .. attribute:: explanation :annotation: = Parameter value is not acceptable. .. py:exception:: OWSNotImplemented(*args, **kwargs) Bases: :class:`weaver.owsexceptions.OWSException` .. attribute:: code :annotation: = NotImplemented .. attribute:: locator :annotation: = .. attribute:: explanation :annotation: = Operation is not implemented.