DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ ThrowError()

static proto int ErrorModuleHandler::ThrowError ( ErrorCategory category,
int code,
string additionalInfo = "" )
staticprivate

Creates and throws the error code, sending it to the handler of the category.

Аргументы
categoryErrorCategory Category the error is thrown from
codeint The code that the error belongs to inside the category between [-32768, 32767]
additionalInfostring Any additional info regarding the error, usually data
Возвращает
int The full error code
int errorCode = ErrorModuleHandler.ThrowError( ErrorCategory.ConnectErrorClient, -1 );
Print( errorCode );
>> errorCode = 196607
ErrorCategory
ErrorCategory - To decide what ErrorHandlerModule needs to be called and easily identify where it cam...
Определения ErrorModuleHandler.c:5
static proto int ThrowError(ErrorCategory category, int code, string additionalInfo="")
Creates and throws the error code, sending it to the handler of the category.
The error handler itself, for managing and distributing errors to modules Manages the ErrorHandlerMod...
Определения ErrorModuleHandler.c:29
proto void Print(void var)
Prints content of variable to console/log.

Используется в CGame::TryConnect().