15#ifndef CPL_VSI_ERROR_H_INCLUDED
16#define CPL_VSI_ERROR_H_INCLUDED
27typedef int VSIErrorNum;
30#define VSIE_FileError 1
31#define VSIE_HttpError 2
33#define VSIE_ObjectStorageGenericError 5
34#define VSIE_AccessDenied 6
35#define VSIE_BucketNotFound 7
36#define VSIE_ObjectNotFound 8
37#define VSIE_InvalidCredentials 9
38#define VSIE_SignatureDoesNotMatch 10
44#define VSIE_AWSError VSIE_ObjectStorageGenericError
50#define VSIE_AWSAccessDenied VSIE_AccessDenied
56#define VSIE_AWSBucketNotFound VSIE_BucketNotFound
62#define VSIE_AWSObjectNotFound VSIE_ObjectNotFound
68#define VSIE_AWSInvalidCredentials VSIE_InvalidCredentials
74#define VSIE_AWSSignatureDoesNotMatch VSIE_SignatureDoesNotMatch
79void CPL_DLL CPL_STDCALL VSIErrorReset(
void);
80VSIErrorNum CPL_DLL CPL_STDCALL VSIGetLastErrorNo(
void);
81const
char CPL_DLL *CPL_STDCALL VSIGetLastErrorMsg(
void);
83const
char *VSIErrorNumToString(
int eErr);
84int CPL_DLL CPL_STDCALL VSIToCPLError(
CPLErr eErrClass,
CPL error handling services.
CPLErr
Error category.
Definition cpl_error.h:37
int CPLErrorNum
Error number.
Definition cpl_error.h:80
Core portability definitions for CPL.
#define CPL_C_END
Macro to end a block of C symbols.
Definition cpl_port.h:289
#define CPL_C_START
Macro to start a block of C symbols.
Definition cpl_port.h:285
#define CPL_FORMAT_STRING(arg)
Macro into which to wrap the format argument of a printf-like function.
Definition cpl_port.h:860
#define CPL_PRINT_FUNC_FORMAT(format_idx, arg_idx)
Tag a function to have printf() formatting.
Definition cpl_port.h:844