GDAL

- Main Page
- Related Pages
- Classes
- Files

- File List
- File Members

cpl_vsi_error.h
1 /******************************************************************************
2 * $Id: cpl_vsi_error.h 33758 2016-03-21 09:06:22Z rouault $
3 *
4 * Project: VSI Virtual File System
5 * Purpose: Implement an error system for reporting file system errors.
6 * Filesystem errors need to be handled separately from the
7 * CPLError architecture because they are potentially ignored.
8 * Author: Rob Emanuele, rdemanuele at gmail.com
9 *
10 ******************************************************************************
11 * Copyright (c) 2016, Rob Emanuele <rdemanuele at gmail.com>
12 *
13 * Permission is hereby granted, free of charge, to any person obtaining a
14 * copy of this software and associated documentation files (the "Software"),
15 * to deal in the Software without restriction, including without limitation
16 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
17 * and/or sell copies of the Software, and to permit persons to whom the
18 * Software is furnished to do so, subject to the following conditions:
19 *
20 * The above copyright notice and this permission notice shall be included
21 * in all copies or substantial portions of the Software.
22 *
23 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
24 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
26 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
27 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
28 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
29 * DEALINGS IN THE SOFTWARE.
30 ****************************************************************************/
31
32 #ifndef CPL_VSI_ERROR_H_INCLUDED
33 #define CPL_VSI_ERROR_H_INCLUDED
34
35 #include "cpl_port.h"
36 #include "cpl_error.h"
37
38 /* ====================================================================
39 Filesystem error codes.
40 ==================================================================== */
41
42 CPL_C_START
43
44 typedef int VSIErrorNum;
45
46 #define VSIE_None 0
47 #define VSIE_FileError 1
48 #define VSIE_HttpError 2
49
50 #define VSIE_AWSError 5
51 #define VSIE_AWSAccessDenied 6
52 #define VSIE_AWSBucketNotFound 7
53 #define VSIE_AWSObjectNotFound 8
54 #define VSIE_AWSInvalidCredentials 9
55 #define VSIE_AWSSignatureDoesNotMatch 10
56
57 void CPL_DLL VSIError(VSIErrorNum err_no, const char *fmt, ...) CPL_PRINT_FUNC_FORMAT (2, 3);
58
59 void CPL_DLL CPL_STDCALL VSIErrorReset( void );
60 VSIErrorNum CPL_DLL CPL_STDCALL VSIGetLastErrorNo( void );
61 const char CPL_DLL * CPL_STDCALL VSIGetLastErrorMsg( void );
62
63 int CPL_DLL CPL_STDCALL VSIToCPLError(CPLErr eErrClass, CPLErrorNum eDefaultErrorNo);
64
65 CPL_C_END
66
67 #endif /* CPL_VSI_ERROR_H_INCLUDED */
cpl_port.h
Core portability definitions for CPL.
cpl_error.h
CPL error handling services.

Generated for GDAL by 1.8.8.