지원 프로그램
home
슬기로운 데모생활
home

Checking Errors

생성일
2024/03/14 06:08
태그
The errors that occur while using the PC SDK are usually one of two cases.

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.
The entire value can be checked in the PC SDK Error Code page.

The StovePCError structure delivered through the OnError callback.

Suppose an error occurs in an asynchronous function during the PC SDK function. In that case, it calls a UMyStoveSDKObject::OnError callback and delivers a StovePCError structure with a description of the error.
/*Delivered when an OnError callback is called.*/ struct StovePCError { /*enum value which indicates the called function*/ StovePCFunctionType functionType; /*enum value which indicates the occurred error type*/ StovePCResult result; /*Occurred Error Message*/ char* message; /*The corresponding error code if an external error (http error, external module error) has occurred*/ int externalError; };
C++
복사