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

◆ GetLastServerMessage()

override string GetLastServerMessage ( int errorCode)
protected

Fetches the Server message for the error code, attempting to retrieve the data from the latest.

Аргументы
errorCodeint The full error code to check against
Возвращает
string The Server message for the error

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

187 {
188 if (errorCode == m_LastErrorThrown)
189 {
190 return GetServerMessage(errorCode, m_LastAdditionalInfo);
191 }
192 else
193 {
194 ErrorEx(string.Format("Was unable to get the information on the last error as another has already occurred. (%1 != %2)", ErrorModuleHandler.GetErrorHex(errorCode), ErrorModuleHandler.GetErrorHex(m_LastErrorThrown)), ErrorExSeverity.WARNING);
195 return GetServerMessage(errorCode);
196 }
197 }
string m_LastAdditionalInfo
Holds the last additional info passed in.
Определения ErrorHandlerModule.c:70
int m_LastErrorThrown
Holds the last thrown error in this module, defaults to 0.
Определения ErrorHandlerModule.c:69
override string GetServerMessage(int errorCode, string additionalInfo="")
Fetches the Server message for the error code.
Определения ErrorHandlerModule.c:167
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
ErrorExSeverity
Определения EnDebug.c:62
enum ShapeType ErrorEx

Перекрестные ссылки ErrorEx, ErrorModuleHandler::GetErrorHex(), GetServerMessage(), m_LastAdditionalInfo и m_LastErrorThrown.