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

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/cows/trunk/cows/exceptions.py@5132
Revision 4912, 1.6 KB checked in by spascoe, 11 years ago (diff)

Added LICENSE file and a short banner at the top of each python file.
Use add_license.py to add a license to new files.

NOTE: also contains a couple of files missed at last commit.

Line 
1# BSD Licence
2# Copyright (c) 2009, Science & Technology Facilities Council (STFC)
3# All rights reserved.
4#
5# See the LICENSE file in the source distribution of this software for
6# the full license text.
7
8# Copyright (C) 2007 STFC & NERC (Science and Technology Facilities Council).
9# This software may be distributed under the terms of the
10# Q Public License, version 1.0 or later.
11# http://ndg.nerc.ac.uk/public_docs/QPublic_license.txt
12"""
13Standard OWS Common exceptions
14
15@author: Stephen Pascoe
16"""
17
18from cows.model.exception_report import OwsError
19
20class OperationNotSupported(OwsError):
21    def __init__(self, text, locator=None):
22        OwsError.__init__(self, 'OperationNotSupported', text, locator)
23
24class MissingParameterValue(OwsError):
25    def __init__(self, text, locator=None):
26        OwsError.__init__(self, 'MissingParameterValue', text, locator)
27
28class InvalidParameterValue(OwsError):
29    def __init__(self, text, locator=None):
30        OwsError.__init__(self, 'InvalidParameterValue', text, locator)
31
32class VersionNegotiationFailed(OwsError):
33    def __init__(self, text, locator=None):
34        OwsError.__init__(self, 'VersionNegotiationFailed', text, locator)
35
36class InvalidUpdateSequence(OwsError):
37    def __init__(self, text, locator=None):
38        OwsError.__init__(self, 'InvalidUpdateSequence', text, locator)
39
40class CurrentUpdateSequence(OwsError):
41    def __init__(self, text, locator=None):
42        OwsError.__init__(self, 'CurrentUpdateSequence', text, locator)
43
44class NoApplicableCode(OwsError):
45    def __init__(self, text, locator=None):
46        OwsError.__init__(self, 'NoApplicableCode', text, locator)
47
Note: See TracBrowser for help on using the repository browser.