bes  Updated for version 3.17.0
wcs_error.h
1 /******************************************************************************
2  * $Id: wcs_error.h 2011-07-19 16:24:00Z $
3  *
4  * Project: The Open Geospatial Consortium (OGC) Web Coverage Service (WCS)
5  * for Earth Observation: Open Source Reference Implementation
6  * Purpose: WCS exception and error handler definition
7  * Author: Yuanzheng Shao, yshao3@gmu.edu
8  *
9  ******************************************************************************
10  * Copyright (c) 2011, Liping Di <ldi@gmu.edu>, Yuanzheng Shao <yshao3@gmu.edu>
11  *
12  * Permission is hereby granted, free of charge, to any person obtaining a
13  * copy of this software and associated documentation files (the "Software"),
14  * to deal in the Software without restriction, including without limitation
15  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
16  * and/or sell copies of the Software, and to permit persons to whom the
17  * Software is furnished to do so, subject to the following conditions:
18  *
19  * The above copyright notice and this permission notice shall be included
20  * in all copies or substantial portions of the Software.
21  *
22  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
23  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
25  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
28  * DEALINGS IN THE SOFTWARE.
29  ****************************************************************************/
30 
31 /************************************************************************
32  WCS Exception Code
33 
34  See OGC Web Services Common Standard [OGC 06-121r9] for details
35  Table 27 — Standard exception codes and meanings
36  OperationNotSupported
37  MissingParameterValue
38  InvalidParameterValue
39  VersionNegotiationFailed
40  InvalidUpdateSequence
41  OptionNotSupported
42  NoApplicableCode
43 
44  See OGC® WCS 2.0 Interface Standard - Core [09-110r3] for details
45  Table 18 - Exception codes for GetCoverage operation
46  NoSuchCoverage
47  InvalidAxisLabel
48  InvalidSubsetting
49 
50 *************************************************************************/
51 
52 #ifndef WCS_ERROR_H_
53 #define WCS_ERROR_H_
54 
55 #include <cpl_error.h>
56 #include <string>
57 
58 using namespace std;
59 
60 #define OGC_WCS_OperationNotSupported 300
61 #define OGC_WCS_MissingParameterValue 301
62 #define OGC_WCS_InvalidParameterValue 302
63 #define OGC_WCS_VersionNegotiationFailed 303
64 #define OGC_WCS_InvalidUpdateSequence 304
65 #define OGC_WCS_OptionNotSupported 305
66 #define OGC_WCS_NoApplicableCode 306
67 
68 #define OGC_WCS_NoSuchCoverage 307
69 #define OGC_WCS_InvalidAxisLabel 308
70 #define OGC_WCS_InvalidSubsetting 309
71 
72 void CPL_DLL CPL_STDCALL WCS_Error(CPLErr, int, const char*, ...);
73 void CPL_DLL CPL_STDCALL SetWCS_ErrorLocator(const char* loc);
74 void CPL_DLL CPL_STDCALL WCS_ErrorHandler(CPLErr, int, const char*);
75 string CPL_DLL CPL_STDCALL GetWCS_ErrorMsg();
76 
77 int WCST_GetSoapMsgTrns();
78 void WCST_SetSoapMsgTrns(int);
79 
80 #define WCS_Error CPLError
81 #endif /* WCS_ERROR_H_ */
STL namespace.