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

◆ GetProperties()

ErrorProperties GetProperties ( int errorCode)
protected

Fetches the ErrorProperties for the error code.

Аргументы
errorCodeint The full error code
Возвращает
ErrorProperties The data and handling for the error

См. определение в файле ErrorHandlerModule.c строка 112

113 {
114 int error = ErrorModuleHandler.GetCodeFromError(errorCode);
115 ErrorProperties properties = null;
116
117 if (!m_ErrorDataMap.Find(error, properties))
118 {
119 Error(string.Format("[EHM] Could not find any properties for error %1(%2) in %3", errorCode, ErrorModuleHandler.GetErrorHex(errorCode), this));
120 }
121
122 return properties;
123 }
ref map< int, ref ErrorProperties > m_ErrorDataMap
Map containing the codes that exist for the ErrorHandlerModule The code links to ErrorProperties This...
Определения ErrorHandlerModule.c:78
static proto int GetCodeFromError(int errorCode)
Returns the code of the error.
static proto owned string GetErrorHex(int errorCode)
Returns a formatted string of the error code.
The error handler itself, for managing and distributing errors to modules Manages the ErrorHandlerMod...
Определения ErrorModuleHandler.c:29
Class which holds the properties and handling of an error.
Определения ErrorProperties.c:3
void Error(string err)
Messagebox with error message.
Определения EnDebug.c:90

Перекрестные ссылки Error(), ErrorModuleHandler::GetCodeFromError(), ErrorModuleHandler::GetErrorHex() и m_ErrorDataMap.

Используется в GetClientMessage(), GetServerMessage() и OnErrorThrown().