Package mapproxy :: Package core :: Module exceptions :: Class XMLExceptionHandler
[hide private]
[frames] | no frames]

Class XMLExceptionHandler

source code

      object --+    
               |    
ExceptionHandler --+
                   |
                  XMLExceptionHandler
Known Subclasses:

Mixin class for jinja-based template renderer.
Instance Methods [hide private]
Response
render(self, request_error)
Render the template of this exception handler.
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables [hide private]
  template_file = None
The filename of the jinja xml template
  content_type = None
The mime type of the exception response (use this or mimetype).
  status_code = 200
The HTTP status code.
  mimetype = None
The mime type of the exception response.
  env = None
Jinja template environment.
Properties [hide private]
  template
The template for this ExceptionHandler.

Inherited from object: __class__

Method Details [hide private]

render(self, request_error)

source code 
Render the template of this exception handler. Passes the request_error.message and request_error.code to the template.
Parameters:
Returns: Response
Overrides: ExceptionHandler.render

Class Variable Details [hide private]

content_type

The mime type of the exception response (use this or mimetype). The content_type is sent as defined here.
Value:
None

mimetype

The mime type of the exception response. (use this or content_type). A character encoding might be added to the mimetype (like text/xml;charset=UTF-8)
Value:
None

Property Details [hide private]

template

The template for this ExceptionHandler.
Get Method:
unreachable.template(self) - The template for this ExceptionHandler.