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