Errors occurring during PC SDK use can be divided into two big categories.
StovePCResult enum value returned after calling the function
All PC SDK’s functions will return a StovePCResult enum value immediately after calling, to mark whether the call was successful.
StovePCError Structure Delivered Through OnError callbacks
If an error occurs in an unsynchronized function among the PC SDK functions, the OnError callback is called, and a StovePCError structure including the description of the error is delivered.
/*Delivered when the OnError callback is called.*/
struct StovePCError
{
/*Enum value showing the called function*/
StovePCFunctionType functionType;
/*Enum value showing the error type*/
StovePCResult result;
/*Error message*/
char* message;
/*Error codes for external errors(http error, external module error)*/
int externalError;
};
C++
복사