Dayz 1.25
Dayz Code Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс ErrorHandlerModule

Definition and API of an ErrorHandlerModule - Do not insert any logic here! (as this class is not moddable) Подробнее...

Защищенные члены

void OnErrorThrown (int errorCode, owned string additionalInfo="")
 Event that gets triggered when an error of the owned category is thrown.
 
string GetClientMessage (int errorCode, string additionalInfo="")
 Retrieve the message shown on Client.
 
string GetLastClientMessage (int errorCode)
 Retrieve the message shown on Client.
 
string GetServerMessage (int errorCode, string additionalInfo="")
 Retrieve the message shown on Server.
 
string GetLastServerMessage (int errorCode)
 Retrieve the message shown on Server.
 
string GetSimpleMessage (int errorCode, string additionalInfo="")
 Simple message of just code and info.
 
void OnEvent (EventType eventTypeId, Param params)
 Event called by ErrorModuleHandler.
 

Закрытые члены

proto native ErrorCategory GetCategory ()
 Returns the category the module handles.
 
proto native void SetCategory (ErrorCategory category)
 Set the category the module handles.
 

Подробное описание

Definition and API of an ErrorHandlerModule - Do not insert any logic here! (as this class is not moddable)

Методы

◆ GetCategory()

proto native ErrorCategory GetCategory ( )
private

Returns the category the module handles.

◆ GetClientMessage()

string GetClientMessage ( int errorCode,
string additionalInfo = "" )
inlineprotected

Retrieve the message shown on Client.

23 {
25 }
string GetSimpleMessage(int errorCode, string additionalInfo="")
Simple message of just code and info.
Definition ErrorHandlerModule.c:46
Definition EntityAI.c:95

Перекрестные ссылки GetSimpleMessage().

◆ GetLastClientMessage()

string GetLastClientMessage ( int errorCode)
inlineprotected

Retrieve the message shown on Client.

29 {
31 }

Перекрестные ссылки GetSimpleMessage().

◆ GetLastServerMessage()

string GetLastServerMessage ( int errorCode)
inlineprotected

Retrieve the message shown on Server.

41 {
43 }

Перекрестные ссылки GetSimpleMessage().

◆ GetServerMessage()

string GetServerMessage ( int errorCode,
string additionalInfo = "" )
inlineprotected

Retrieve the message shown on Server.

35 {
37 }

Перекрестные ссылки GetSimpleMessage().

◆ GetSimpleMessage()

string GetSimpleMessage ( int errorCode,
string additionalInfo = "" )
inlineprotected

Simple message of just code and info.

47 {
48 return string.Format("[%1]: %2", ErrorModuleHandler.GetErrorHex(errorCode), additionalInfo);
49 }
The error handler itself, for managing and distributing errors to modules Manages the ErrorHandlerMod...
Definition ErrorModuleHandler.c:29
static proto owned string GetErrorHex(int errorCode)
Returns a formatted string of the error code.

Перекрестные ссылки string::Format() и ErrorModuleHandler::GetErrorHex().

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

◆ OnErrorThrown()

void OnErrorThrown ( int errorCode,
owned string additionalInfo = "" )
inlineprotected

Event that gets triggered when an error of the owned category is thrown.

15 {
16 #ifdef DEVELOPER
18 #endif
19 }
proto void Print(void var)
Prints content of variable to console/log.

Перекрестные ссылки ErrorModuleHandler::GetErrorHex() и Print().

◆ OnEvent()

void OnEvent ( EventType eventTypeId,
Param params )
inlineprotected

Event called by ErrorModuleHandler.

53 {
54 }

◆ SetCategory()

proto native void SetCategory ( ErrorCategory category)
private

Set the category the module handles.


Объявления и описания членов класса находятся в файле: