source: TI05-delivery/ows_framework/trunk/ows_common/ows_common/exceptions.py @ 3544

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI05-delivery/ows_framework/trunk/ows_common/ows_common/exceptions.py
Revision 3544, 1.4 KB checked in by cbyrom, 12 years ago (diff)

Adjust code to allow multiple WMC docs to be selected in the selections
tab and displayed in the view tab. Also rename the display tab to 'details'
and add new exceptions to deal with URL lookup failures.

Line 
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"""
6Standard OWS Common exceptions
7
8@author: Stephen Pascoe
9"""
10
11from ows_common.exception_report import OwsError
12
13class OperationNotSupported(OwsError):
14    def __init__(self, text, locator=None):
15        OwsError.__init__(self, 'OperationNotSupported', text, locator)
16
17class MissingParameterValue(OwsError):
18    def __init__(self, text, locator=None):
19        OwsError.__init__(self, 'MissingParameterValue', text, locator)
20
21class InvalidParameterValue(OwsError):
22    def __init__(self, text, locator=None):
23        OwsError.__init__(self, 'InvalidParameterValue', text, locator)
24
25class VersionNegotiationFailed(OwsError):
26    def __init__(self, text, locator=None):
27        OwsError.__init__(self, 'VersionNegotiationFailed', text, locator)
28
29class InvalidUpdateSequence(OwsError):
30    def __init__(self, text, locator=None):
31        OwsError.__init__(self, 'InvalidUpdateSequence', text, locator)
32
33class NoApplicableCode(OwsError):
34    def __init__(self, text, locator=None):
35        OwsError.__init__(self, 'NoApplicableCode', text, locator)
36
37class URLUnavailable(OwsError):
38    def __init__(self, text, locator=None):
39        OwsError.__init__(self, 'URLUnavailable', text, locator)
40
Note: See TracBrowser for help on using the repository browser.