source: TI05-delivery/ows_framework/trunk/ows_common/exception_report.py @ 2475

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI05-delivery/ows_framework/trunk/ows_common/exception_report.py@2475
Revision 2475, 988 bytes checked in by spascoe, 13 years ago (diff)

renaming part 2

RevLine 
[2471]1# Copyright (C) 2007 STFC & NERC (Science and Technology Facilities Council).
2# This software may be distributed under the terms of the
3# Q Public License, version 1.0 or later.
4# http://ndg.nerc.ac.uk/public_docs/QPublic_license.txt
5"""
6Classes modelling the OWS Exception Report package v1.1.0.
7
8@author: Stephen Pascoe
9"""
10
11class ExceptionReport(object):
12    """
13    @ivar version
14    @type version: str
15    @ivar lang
16    @type lang: None or str, from RFC 4646
17    @ivar exceptions: Iterable of OWSException objects
18
19    """
20    def __init__(self, version, exceptions, lang=None):
21        self.version = version
22        self.exceptions = exceptions
23        self.lang = lang
24
25class OwsException(object):
26    """
27    @ivar code
28    @type code: str
29    @ivar text
30    @type text: None or str
31    @ivar locator
32    @type locator: None or str
33
34    """
35    def ___init__(self, code, text=None, locator=None):
36        self.code = code
37        self.text = text
38        self.locator = locator
Note: See TracBrowser for help on using the repository browser.