Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
ErrorProperties Class Reference

Class which holds the properties and handling of an error. More...

Protected Member Functions

void ErrorProperties (string message, string serverMessage)
string GetClientMessage (string additionalInfo="")
string GetServerMessage (string additionalInfo="")
void HandleError (int errorCode, string additionalInfo="")

Protected Attributes

string m_Message
 Message which will appear on Client.
string m_ServerMessage
 Message which will appear on Server.

Private Attributes

const string EP_HEADER_FORMAT_STRING = "%1 (%2)"
 Formating for header (%1 = Header; %2 = ErrorCode).
const string EP_MESSAGE_FORMAT_STRING = "%1\n(%2)"
 Formating for message (%1 = Message; %2 = AdditionalInfo).

Detailed Description

Class which holds the properties and handling of an error.

Definition at line 2 of file errorproperties.c.

Constructor & Destructor Documentation

◆ ErrorProperties()

void ErrorProperties ( string message,
string serverMessage )
inlineprotected

Definition at line 10 of file errorproperties.c.

References m_Message, and m_ServerMessage.

Member Function Documentation

◆ GetClientMessage()

string GetClientMessage ( string additionalInfo = "")
inlineprotected

Definition at line 18 of file errorproperties.c.

References EP_MESSAGE_FORMAT_STRING, string::Format(), and m_Message.

Referenced by GetClientMessage().

◆ GetServerMessage()

string GetServerMessage ( string additionalInfo = "")
inlineprotected

Definition at line 26 of file errorproperties.c.

References EP_MESSAGE_FORMAT_STRING, string::Format(), and m_ServerMessage.

Referenced by GetServerMessage().

◆ HandleError()

void HandleError ( int errorCode,
string additionalInfo = "" )
inlineprotected

Definition at line 16 of file errorproperties.c.

Referenced by OnErrorThrown().

Field Documentation

◆ EP_HEADER_FORMAT_STRING

const string EP_HEADER_FORMAT_STRING = "%1 (%2)"
private

Formating for header (%1 = Header; %2 = ErrorCode).

Definition at line 4 of file errorproperties.c.

◆ EP_MESSAGE_FORMAT_STRING

const string EP_MESSAGE_FORMAT_STRING = "%1\n(%2)"
private

Formating for message (%1 = Message; %2 = AdditionalInfo).

Definition at line 5 of file errorproperties.c.

Referenced by GetClientMessage(), and GetServerMessage().

◆ m_Message

string m_Message
protected

Message which will appear on Client.

Definition at line 7 of file errorproperties.c.

Referenced by ErrorProperties(), and GetClientMessage().

◆ m_ServerMessage

string m_ServerMessage
protected

Message which will appear on Server.

Definition at line 8 of file errorproperties.c.

Referenced by ErrorProperties(), and GetServerMessage().


The documentation for this class was generated from the following file: