weaver.owsexceptions

OWSExceptions definitions.

Exceptions are based on pyramid.httpexceptions and pywps.exceptions to handle more cases where they can be caught whether the running process is via weaver or through pywps service.

Furthermore, interrelation with weaver.exceptions classes (with base weaver.exceptions.WeaverException) also employ specific OWSExceptions definitions to provide specific error details.

Module Contents

exception weaver.owsexceptions.OWSException(detail: str | None = None, value: Any | None = None, json: weaver.typedefs.JSON | None = None, **kw: Any)[source]

Base OWS Exception definition.

Initialize self. See help(type(self)) for accurate signature.

code = 'NoApplicableCode'[source]
value = None[source]
locator = 'NoApplicableCode'[source]
description = 'Unknown Error'[source]
page_template[source]
status[source]
desc[source]
message[source]
content_type[source]
static json_formatter(status: str, body: str, title: str, environ: weaver.typedefs.SettingsType) weaver.typedefs.JSON[source]
prepare(environ)[source]
property wsgi_response[source]
exception[source]
exception weaver.owsexceptions.OWSAccessForbidden(*args, **kwargs)[source]

Base OWS Exception definition.

Initialize self. See help(type(self)) for accurate signature.

code = 'AccessForbidden'[source]
locator = ''[source]
explanation = 'Access to this service is forbidden.'[source]
exception weaver.owsexceptions.OWSNotFound(*args, **kwargs)[source]

Base OWS Exception definition.

Initialize self. See help(type(self)) for accurate signature.

code = 'NotFound'[source]
locator = ''[source]
explanation = 'Resource does not exist.'[source]
exception weaver.owsexceptions.OWSGone(*args, **kwargs)[source]

Base OWS Exception definition.

Initialize self. See help(type(self)) for accurate signature.

code = 'ResourceGone'[source]
locator = ''[source]
explanation = 'Resource is gone.'[source]
exception weaver.owsexceptions.OWSNotAcceptable(*args, **kwargs)[source]

Base OWS Exception definition.

Initialize self. See help(type(self)) for accurate signature.

code = 'NotAcceptable'[source]
locator = ''[source]
explanation = 'Cannot produce requested Accept format.'[source]
exception weaver.owsexceptions.OWSNoApplicableCode(*args, **kwargs)[source]

WPS Bad Request Exception.

Initialize self. See help(type(self)) for accurate signature.

code = 'NoApplicableCode'[source]
locator = ''[source]
explanation = 'Undefined error'[source]
exception weaver.owsexceptions.OWSMissingParameterValue(*args, **kwargs)[source]

MissingParameterValue WPS Exception.

Initialize self. See help(type(self)) for accurate signature.

code = 'MissingParameterValue'[source]
locator = ''[source]
description = 'Parameter value is missing'[source]
exception weaver.owsexceptions.OWSInvalidParameterValue(*args, **kwargs)[source]

InvalidParameterValue WPS Exception.

Initialize self. See help(type(self)) for accurate signature.

code = 'InvalidParameterValue'[source]
locator = ''[source]
description = 'Parameter value is not acceptable.'[source]
exception weaver.owsexceptions.OWSNotImplemented(*args, **kwargs)[source]

Base OWS Exception definition.

Initialize self. See help(type(self)) for accurate signature.

code = 'NotImplemented'[source]
locator = ''[source]
description = 'Operation is not implemented.'[source]