32 #ifndef CPL_VSI_ERROR_H_INCLUDED
33 #define CPL_VSI_ERROR_H_INCLUDED
44 typedef int VSIErrorNum;
47 #define VSIE_FileError 1
48 #define VSIE_HttpError 2
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
57 void CPL_DLL VSIError(VSIErrorNum err_no,
const char *fmt, ...) CPL_PRINT_FUNC_FORMAT (2, 3);
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 );
63 int CPL_DLL CPL_STDCALL VSIToCPLError(CPLErr eErrClass, CPLErrorNum eDefaultErrorNo);
Core portability definitions for CPL.
CPL error handling services.