DayZ 1.24
|
Go to the source code of this file.
Classes | |
class | ErrorHandlerModule |
Definition and API of an ErrorHandlerModule - Do not insert any logic here! (as this class is not moddable) More... | |
Variables | |
class ErrorHandlerModule | m_Header = "" |
This is where to input logic and extend functionality of ErrorHandlerModule. | |
string | m_Prefix = "" |
Optional: Prefix (e.g. Fixed text at the start of the messages in the module) | |
ref UIScriptedMenu | m_UIHandler = null |
Optional: The UI the handler might generally use | |
int | m_LastErrorThrown = 0 |
Holds the last thrown error in this module, defaults to 0. | |
string | m_LastAdditionalInfo = "" |
Holds the last additional info passed in. | |
ref map< int, ref ErrorProperties > | m_ErrorDataMap = new map<int, ref ErrorProperties>() |
Map containing the codes that exist for the ErrorHandlerModule The code links to ErrorProperties This contains at the very least the Message for the error Additionally, it can contain the way to handle the error (e.g. Throw a Dialogue with the message) | |
|
protected |
Constructor, by default calls the function that will fill the ErrorDataMap.
Definition at line 81 of file ErrorHandlerModule.c.
References FillErrorDataMap(), and InitOptionalVariables().
|
protected |
Function to fill up m_ErrorDataMap, gets called in the Constructor.
Already insert the default "UNKNOWN ERROR" message for code "-1"
Definition at line 99 of file ErrorHandlerModule.c.
References InsertDialogueErrorProperties().
Fetches the Client message for the error code.
errorCode | int The full error code |
string
The Client message for the error Definition at line 126 of file ErrorHandlerModule.c.
References GetProperties().
Referenced by GetLastClientMessage().
Fetches the Client message for the error code, attempting to retrieve the data from the latest.
errorCode | int The full error code to check against |
string
The Client message for the error Definition at line 141 of file ErrorHandlerModule.c.
References ErrorEx, GetClientMessage(), ErrorModuleHandler::GetErrorHex(), m_LastAdditionalInfo, and m_LastErrorThrown.
Fetches the Server message for the error code, attempting to retrieve the data from the latest.
errorCode | int The full error code to check against |
string
The Server message for the error Definition at line 172 of file ErrorHandlerModule.c.
References ErrorEx, ErrorModuleHandler::GetErrorHex(), GetServerMessage(), m_LastAdditionalInfo, and m_LastErrorThrown.
|
protected |
Fetches the ErrorProperties for the error code.
errorCode | int The full error code |
ErrorProperties
The data and handling for the error Definition at line 110 of file ErrorHandlerModule.c.
References Error(), ErrorModuleHandler::GetCodeFromError(), ErrorModuleHandler::GetErrorHex(), and m_ErrorDataMap.
Referenced by GetClientMessage(), GetServerMessage(), and OnErrorThrown().
Fetches the Server message for the error code.
errorCode | int The full error code |
string
The Server message for the error Definition at line 157 of file ErrorHandlerModule.c.
References GetProperties().
Referenced by GetLastServerMessage().
|
protected |
Function which gets called before FillErrorDataMap, designed to set Optional Variales before ErrorProperties are created.
Definition at line 94 of file ErrorHandlerModule.c.
|
protected |
Insert an error with Dialogue as handling, using the Optional Variables.
Definition at line 213 of file ErrorHandlerModule.c.
References DialogueErrorProperties(), m_ErrorDataMap, m_Header, m_Prefix, and m_UIHandler.
Referenced by ClientKickedModule::FillErrorDataMap(), ConnectErrorClientModule::FillErrorDataMap(), FillErrorDataMap(), ConnectErrorServerModule::FillErrorDataMap(), and BIOSErrorModule::InsertBIOSError().
Insert an error with no handling.
Definition at line 249 of file ErrorHandlerModule.c.
References m_ErrorDataMap.
Referenced by BIOSErrorModule::FillErrorDataMap(), ClientKickedModule::FillErrorDataMap(), ConnectErrorClientModule::FillErrorDataMap(), and BIOSErrorModule::InsertBIOSError().
|
protected |
Insert an error with Dialogue as handling with extended prefix.
Definition at line 231 of file ErrorHandlerModule.c.
References DialogueErrorProperties(), m_ErrorDataMap, m_Header, m_Prefix, and m_UIHandler.
Referenced by ClientKickedModule::FillErrorDataMap().
|
protected |
Insert an error with Dialogue as handling with extended prefix and separate server message.
Definition at line 237 of file ErrorHandlerModule.c.
References DialogueErrorProperties(), m_ErrorDataMap, m_Header, m_Prefix, and m_UIHandler.
Referenced by ClientKickedModule::FillErrorDataMap().
|
protected |
Insert an error with Dialogue as handling with custom header.
Definition at line 219 of file ErrorHandlerModule.c.
References DialogueErrorProperties(), m_ErrorDataMap, m_Prefix, and m_UIHandler.
|
protected |
Insert an error with Dialogue as handling with custom prefix.
Definition at line 225 of file ErrorHandlerModule.c.
References DialogueErrorProperties(), m_ErrorDataMap, m_Header, and m_UIHandler.
Referenced by ClientKickedModule::FillErrorDataMap().
|
protected |
Insert an error with Dialogue as handling with separate server message.
Definition at line 243 of file ErrorHandlerModule.c.
References DialogueErrorProperties(), m_ErrorDataMap, m_Header, m_Prefix, and m_UIHandler.
Referenced by ClientKickedModule::FillErrorDataMap().
Event that gets triggered when an error of the owned category is thrown. Do not call directly! Call ErrorModuleHandler.ThrowError instead.
errorCode | int The full error code |
additionalInfo | string Any additional info regarding the error, usually data |
Definition at line 190 of file ErrorHandlerModule.c.
References ErrorEx, GetCategory(), ErrorModuleHandler::GetErrorHex(), GetProperties(), m_ErrorDataMap, m_LastAdditionalInfo, m_LastErrorThrown, and ToString().
|
protected |
Definition at line 87 of file ErrorHandlerModule.c.
References m_UIHandler.
|
protected |
Map
containing the codes that exist for the ErrorHandlerModule The code links to ErrorProperties This contains at the very least the Message for the error Additionally, it can contain the way to handle the error (e.g. Throw a Dialogue with the message)
Definition at line 78 of file ErrorHandlerModule.c.
Referenced by GetProperties(), InsertDialogueErrorProperties(), InsertErrorProperties(), InsertExtendedPrefixDialogueErrorProperties(), InsertExtendedPrefixSplitDialogueErrorProperties(), InsertHeaderDialogueErrorProperties(), InsertPrefixDialogueErrorProperties(), InsertSplitDialogueErrorProperties(), and OnErrorThrown().
class ErrorHandlerModule m_Header = "" |
This is where to input logic and extend functionality of ErrorHandlerModule.
Optional:
Header (e.g. The header of a Dialogue box)
Referenced by DialogueErrorProperties(), HandleError(), BIOSErrorModule::InitOptionalVariables(), ClientKickedModule::InitOptionalVariables(), ConnectErrorClientModule::InitOptionalVariables(), ConnectErrorServerModule::InitOptionalVariables(), InsertDialogueErrorProperties(), InsertExtendedPrefixDialogueErrorProperties(), InsertExtendedPrefixSplitDialogueErrorProperties(), InsertPrefixDialogueErrorProperties(), and InsertSplitDialogueErrorProperties().
|
protected |
Holds the last additional info passed in.
Definition at line 70 of file ErrorHandlerModule.c.
Referenced by GetLastClientMessage(), GetLastServerMessage(), and OnErrorThrown().
|
protected |
Holds the last thrown error in this module, defaults to 0.
Definition at line 69 of file ErrorHandlerModule.c.
Referenced by GetLastClientMessage(), GetLastServerMessage(), OnErrorThrown(), ConnectErrorClientModule::OnEvent(), OnEvent(), and ConnectErrorServerModule::OnEvent().
|
protected |
Optional:
Prefix (e.g. Fixed text at the start of the messages in the module)
Definition at line 66 of file ErrorHandlerModule.c.
Referenced by ClientKickedModule::InitOptionalVariables(), InsertDialogueErrorProperties(), InsertExtendedPrefixDialogueErrorProperties(), InsertExtendedPrefixSplitDialogueErrorProperties(), InsertHeaderDialogueErrorProperties(), and InsertSplitDialogueErrorProperties().
|
protected |
Optional:
The UI the handler might generally use
Definition at line 67 of file ErrorHandlerModule.c.
Referenced by InsertDialogueErrorProperties(), InsertExtendedPrefixDialogueErrorProperties(), InsertExtendedPrefixSplitDialogueErrorProperties(), InsertHeaderDialogueErrorProperties(), InsertPrefixDialogueErrorProperties(), InsertSplitDialogueErrorProperties(), and ~ErrorHandlerModuleScript().