Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(4)  |  Derive(0)  |  Import(2)
Exception handler for OGC WMS 1.0.0 ServiceExceptionReports

src/m/a/MapProxy-1.6.0/mapproxy/request/wms/__init__.py   MapProxy(Download)
    def exception_handler(self):
        return exception.WMS100ExceptionHandler()
 
 
class WMS110CapabilitiesRequest(WMSCapabilitiesRequest):

src/m/a/mapproxy-HEAD/mapproxy/request/wms/__init__.py   mapproxy(Download)
    def exception_handler(self):
        return exception.WMS100ExceptionHandler()
 
 
class WMS110CapabilitiesRequest(WMSCapabilitiesRequest):

src/m/a/mapproxy-HEAD/mapproxy/test/unit/test_exceptions.py   mapproxy(Download)
from mapproxy.request import url_decode
from mapproxy.exception import (RequestError, ExceptionHandler)
from mapproxy.request.wms.exception import (WMS100ExceptionHandler, WMS111ExceptionHandler,
                                     WMS130ExceptionHandler, WMS110ExceptionHandler)
from nose.tools import eq_
    def test_render(self):
        req = self.mock(WMSMapRequest)
        req_ex = RequestError('the exception message', request=req)
        ex_handler = WMS100ExceptionHandler()
        self.expect(req.exception_handler).result(ex_handler)

src/m/a/MapProxy-1.6.0/mapproxy/test/unit/test_exceptions.py   MapProxy(Download)
from mapproxy.request import url_decode
from mapproxy.exception import (RequestError, ExceptionHandler)
from mapproxy.request.wms.exception import (WMS100ExceptionHandler, WMS111ExceptionHandler,
                                     WMS130ExceptionHandler, WMS110ExceptionHandler)
from nose.tools import eq_
    def test_render(self):
        req = self.mock(WMSMapRequest)
        req_ex = RequestError('the exception message', request=req)
        ex_handler = WMS100ExceptionHandler()
        self.expect(req.exception_handler).result(ex_handler)