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

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

Many new ideas in this commit. It's still in a state of flux.
I'm exploring using decorators and class attributes with the prefix "_ows"
to declare properties that need to be in the OWS capabilities document.

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__('OperationNotSupported', text, locator)
16
17class MissingParameterValue(OwsError):
18    def __init__(self, text, locator=None):
19        OwsError.__init__('MissingParameterValue', text, locator)
20
21class InvalidParameterValue(OwsError):
22    def __init__(self, text, locator=None):
23        OwsError.__init__('InvalidParameterValue', text, locator)
24
25class VersionNegotiationFailed(OwsError):
26    def __init__(self, text, locator=None):
27        OwsError.__init__('VersionNegotiationFailed', text, locator)
28
29class InvalidUpdateSequence(OwsError):
30    def __init__(self, text, locator=None):
31        OwsError.__init__('InvalidUpdateSequence', text, locator)
32
33class NoApplicableCode(OwsError):
34    def __init__(self, text, locator=None):
35        OwsError.__init__('NoApplicableCode', text, locator)
36
Note: See TracBrowser for help on using the repository browser.