weaver.owsexceptions ==================== .. py:module:: weaver.owsexceptions .. autoapi-nested-parse:: OWSExceptions definitions. Exceptions are based on :mod:`pyramid.httpexceptions` and :mod:`pywps.exceptions` to handle more cases where they can be caught whether the running process is via :mod:`weaver` or through :mod:`pywps` service. Furthermore, interrelation with :mod:`weaver.exceptions` classes (with base :exc:`weaver.exceptions.WeaverException`) also employ specific :exc:`OWSExceptions` definitions to provide specific error details. Module Contents --------------- .. py:exception:: OWSException(detail: Optional[str] = None, value: Optional[Any] = None, json: Optional[weaver.typedefs.JSON] = None, **kw: Any) Base OWS Exception definition. Initialize self. See help(type(self)) for accurate signature. .. py:attribute:: code :value: 'NoApplicableCode' .. py:attribute:: value :value: None .. py:attribute:: locator :value: 'NoApplicableCode' .. py:attribute:: description :value: 'Unknown Error' .. py:attribute:: page_template .. py:attribute:: message .. py:attribute:: content_type :value: 'application/json' .. py:method:: json_formatter(status: str, body: str, title: str, environ: weaver.typedefs.SettingsType) -> weaver.typedefs.JSON :staticmethod: .. py:method:: prepare(environ) .. py:property:: wsgi_response .. py:attribute:: exception .. py:exception:: OWSAccessForbidden(*args, **kwargs) Base OWS Exception definition. Initialize self. See help(type(self)) for accurate signature. .. py:attribute:: code :value: 'AccessForbidden' .. py:attribute:: locator :value: '' .. py:attribute:: explanation :value: 'Access to this service is forbidden.' .. py:exception:: OWSNotFound(*args, **kwargs) Base OWS Exception definition. Initialize self. See help(type(self)) for accurate signature. .. py:attribute:: code :value: 'NotFound' .. py:attribute:: locator :value: '' .. py:attribute:: explanation :value: 'Resource does not exist.' .. py:exception:: OWSGone(*args, **kwargs) Base OWS Exception definition. Initialize self. See help(type(self)) for accurate signature. .. py:attribute:: code :value: 'ResourceGone' .. py:attribute:: locator :value: '' .. py:attribute:: explanation :value: 'Resource is gone.' .. py:exception:: OWSNotAcceptable(*args, **kwargs) Base OWS Exception definition. Initialize self. See help(type(self)) for accurate signature. .. py:attribute:: code :value: 'NotAcceptable' .. py:attribute:: locator :value: '' .. py:attribute:: explanation :value: 'Cannot produce requested Accept format.' .. py:exception:: OWSNoApplicableCode(*args, **kwargs) WPS Bad Request Exception. Initialize self. See help(type(self)) for accurate signature. .. py:attribute:: code :value: 'NoApplicableCode' .. py:attribute:: locator :value: '' .. py:attribute:: explanation :value: 'Undefined error' .. py:exception:: OWSMissingParameterValue(*args, **kwargs) MissingParameterValue WPS Exception. Initialize self. See help(type(self)) for accurate signature. .. py:attribute:: code :value: 'MissingParameterValue' .. py:attribute:: locator :value: '' .. py:attribute:: description :value: 'Parameter value is missing' .. py:exception:: OWSInvalidParameterValue(*args, **kwargs) InvalidParameterValue WPS Exception. Initialize self. See help(type(self)) for accurate signature. .. py:attribute:: code :value: 'InvalidParameterValue' .. py:attribute:: locator :value: '' .. py:attribute:: description :value: 'Parameter value is not acceptable.' .. py:exception:: OWSNotImplemented(*args, **kwargs) Base OWS Exception definition. Initialize self. See help(type(self)) for accurate signature. .. py:attribute:: code :value: 'NotImplemented' .. py:attribute:: locator :value: '' .. py:attribute:: description :value: 'Operation is not implemented.'