source: cows/trunk/cows/exceptions.py @ 4008

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/cows/trunk/cows/exceptions.py@4312
Revision 4008, 1.4 KB checked in by spascoe, 12 years ago (diff)

New COWS distribution. See [4005] for description.

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 cows.model.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 CurrentUpdateSequence(OwsError):
34    def __init__(self, text, locator=None):
35        OwsError.__init__(self, 'CurrentUpdateSequence', text, locator)
36
37class NoApplicableCode(OwsError):
38    def __init__(self, text, locator=None):
39        OwsError.__init__(self, 'NoApplicableCode', text, locator)
40
Note: See TracBrowser for help on using the repository browser.