43 static proto
int ThrowError(
ErrorCategory category,
int code,
string additionalInfo =
"");
57 static proto
int ThrowErrorCode(
int errorCode,
string additionalInfo =
"");
71 static proto
int CreateError(
ErrorCategory category,
int code);
84 static proto
ErrorCategory GetCategoryFromError(
int errorCode);
97 static proto
int GetCodeFromError(
int errorCode);
110 static proto owned
string GetErrorHex(
int errorCode);
138 static proto
string GetClientMessage(
ErrorCategory category,
int code,
string additionalInfo =
"");
146 static proto
string GetClientMessageByCode(
int errorCode,
string additionalInfo =
"");
154 static proto
string GetLastClientMessage(
ErrorCategory category,
int code);
161 static proto
string GetLastClientMessageByCode(
int errorCode);
170 static proto
string GetServerMessage(
ErrorCategory category,
int code,
string additionalInfo =
"");
178 static proto
string GetServerMessageByCode(
int errorCode,
string additionalInfo =
"");
186 static proto
string GetLastServerMessage(
ErrorCategory category,
int code);
193 static proto
string GetLastServerMessageByCode(
int errorCode);
213 if ( !AddModule(errorModule.GetCategory(), errorModule) )
214 Error(
string.Format(
"[EMH] Adding %1 failed. (Category: %2)", errorModule, errorModule.GetCategory()));
223 if ( !RemoveModule(errorModule.GetCategory()) )
224 Error(
string.Format(
"[EMH] Removing %1 failed. (Category: %2)", errorModule, errorModule.GetCategory()));
233 if ( !RemoveModule(category) )
234 Error(
string.Format(
"[EMH] Removing %1 failed.", category));
242 if (!
g_Game.IsDedicatedServer())
258 GetErrorModules(errorModules);
262 module.OnEvent(eventTypeId, params);