:tocdepth: 3 :py:mod:`gws.base.ows.server.error` =================================== .. py:module:: gws.base.ows.server.error .. autoapi-nested-parse:: OWS-specific errors. Each error class corresponds to an OWS error code, as defined in OGC standards. **Source code:** :source:`gws.base.ows.server.error` Module Contents --------------- .. py:exception:: BadRequest(*args) Bases: :py:obj:`Error` OWS error. .. py:exception:: CannotLockAllFeatures(*args) Bases: :py:obj:`Error` OWS error. .. py:exception:: CurrentUpdateSequence(*args) Bases: :py:obj:`Error` OWS error. .. py:exception:: DuplicateStoredQueryIdValue(*args) Bases: :py:obj:`Error` OWS error. .. py:exception:: DuplicateStoredQueryParameterName(*args) Bases: :py:obj:`Error` OWS error. .. py:exception:: Error(*args) Bases: :py:obj:`gws.Error` OWS error. .. py:attribute:: code :value: 'Error' .. py:attribute:: locator :value: '' .. py:attribute:: message :value: '' .. py:attribute:: status .. py:method:: to_image_response(mime='image/png') -> gws.ContentResponse Returns an image response for this error. :param mime: Image mime type. .. py:method:: to_xml_response(xmlns='ows') -> gws.ContentResponse Returns an XML response for this error. :param xmlns: XML namespace to use (``ogc`` or ``ows``). .. py:exception:: FeaturesNotLocked(*args) Bases: :py:obj:`Error` OWS error. .. py:exception:: Forbidden(*args) Bases: :py:obj:`Error` OWS error. .. py:function:: from_exception(exc: Exception) -> Error Convert an Exception to the OWS Error. .. py:exception:: InvalidCRS(*args) Bases: :py:obj:`Error` OWS error. .. py:exception:: InvalidDimensionValue(*args) Bases: :py:obj:`Error` OWS error. .. py:exception:: InvalidFormat(*args) Bases: :py:obj:`Error` OWS error. .. py:exception:: InvalidLockId(*args) Bases: :py:obj:`Error` OWS error. .. py:exception:: InvalidParameterValue(*args) Bases: :py:obj:`Error` OWS error. .. py:exception:: InvalidPoint(*args) Bases: :py:obj:`Error` OWS error. .. py:exception:: InvalidUpdateSequence(*args) Bases: :py:obj:`Error` OWS error. .. py:exception:: InvalidValue(*args) Bases: :py:obj:`Error` OWS error. .. py:exception:: LayerNotDefined(*args) Bases: :py:obj:`Error` OWS error. .. py:exception:: LayerNotQueryable(*args) Bases: :py:obj:`Error` OWS error. .. py:exception:: LockHasExpired(*args) Bases: :py:obj:`Error` OWS error. .. py:exception:: MissingDimensionValue(*args) Bases: :py:obj:`Error` OWS error. .. py:exception:: MissingParameterValue(*args) Bases: :py:obj:`Error` OWS error. .. py:exception:: NoApplicableCode(*args) Bases: :py:obj:`Error` OWS error. .. py:exception:: NotFound(*args) Bases: :py:obj:`Error` OWS error. .. py:exception:: OperationNotSupported(*args) Bases: :py:obj:`Error` OWS error. .. py:exception:: OperationParsingFailed(*args) Bases: :py:obj:`Error` OWS error. .. py:exception:: OperationProcessingFailed(*args) Bases: :py:obj:`Error` OWS error. .. py:exception:: OptionNotSupported(*args) Bases: :py:obj:`Error` OWS error. .. py:exception:: PointIJOutOfRange(*args) Bases: :py:obj:`Error` OWS error. .. py:exception:: ResponseCacheExpired(*args) Bases: :py:obj:`Error` OWS error. .. py:exception:: StyleNotDefined(*args) Bases: :py:obj:`Error` OWS error. .. py:exception:: TileOutOfRange(*args) Bases: :py:obj:`Error` OWS error. .. py:exception:: VersionNegotiationFailed(*args) Bases: :py:obj:`Error` OWS error.