DayZ 1.24
Loading...
Searching...
No Matches
BIOSErrorModule Class Reference
Inheritance diagram for BIOSErrorModule:
[legend]
Collaboration diagram for BIOSErrorModule:
[legend]

Private Member Functions

void BIOSErrorModule ()
 
override void InitOptionalVariables ()
 
override void FillErrorDataMap ()
 
void InsertBIOSError (int code, string message)
 

Detailed Description

Definition at line 62 of file BIOSErrorModule.c.

Constructor & Destructor Documentation

◆ BIOSErrorModule()

void BIOSErrorModule::BIOSErrorModule ( )
inlineprivate

Definition at line 64 of file BIOSErrorModule.c.

65 {
66 SetCategory(ErrorCategory.BIOSError);
67 }
ErrorCategory
ErrorCategory - To decide what ErrorHandlerModule needs to be called and easily identify where it cam...

Member Function Documentation

◆ FillErrorDataMap()

override void BIOSErrorModule::FillErrorDataMap ( )
inlineprivate

Definition at line 76 of file BIOSErrorModule.c.

77 {
78 super.FillErrorDataMap();
79
80 InsertErrorProperties(EBiosError.OK); // Not an error, so no message
81 InsertBIOSError(EBiosError.CANCEL, "#STR_BIOS_OperationCancelled");
82 InsertBIOSError(EBiosError.BAD_PARAMETER, "#STR_BIOS_BadParameter");
83 InsertBIOSError(EBiosError.NOT_FOUND, "#STR_BIOS_NotFound");
84 InsertBIOSError(EBiosError.NOT_IMPLEMENTED, "#STR_BIOS_NotImplemented");
85 InsertBIOSError(EBiosError.PURCHASE_REQUIRED, "#STR_BIOS_PurchaseRequired");
86 InsertBIOSError(EBiosError.NOT_ALLOWED, "#STR_BIOS_ActionRestricted");
87 InsertBIOSError(EBiosError.BANNED, "#STR_auth_publisher_ban");
88 InsertBIOSError(EBiosError.LOGICAL, "#STR_BIOS_APILogicError");
89
90 InsertBIOSError(EBiosError.WRONG_RESPONSE_DATA, "#STR_BIOS_UnexpectedFormat");
91
92 InsertBIOSError(EBiosError.SERVER_HEARTBEAT_SERVER_NOT_FOUND, "#STR_BIOS_ServerNotRegistered");
93 InsertBIOSError(EBiosError.SERVER_REGISTER_ALREADY_EXISTS, "#STR_BIOS_ServerAlreadyRegistered");
94
95 InsertBIOSError(EBiosError.REQUEST_CREATE_FAIL_XHR, "#STR_BIOS_FailedToOpenRequest");
96 InsertBIOSError(EBiosError.REQUEST_SEND_FAIL, "#STR_BIOS_FailedToSendData");
97 InsertBIOSError(EBiosError.REQUEST_WAIT_FAIL, "#STR_BIOS_FailedToWaitOperationEnd");
98
99 InsertBIOSError(EBiosError.NON_JSON_RESPONSE, "#STR_BIOS_UnexpectedFormat");
100
101 InsertBIOSError(EBiosError.UPDATE_REQUIRED, "#STR_BIOS_UpdateRequired");
102 InsertBIOSError(EBiosError.UPDATE_REQUIRED_AND_DOWNLOADED, "#STR_BIOS_UpdateRequiredAndDownloaded");
103
104 InsertBIOSError(EBiosError.COMUNICATION_ERROR, "#STR_BIOS_CommunicationError");
105
106 InsertBIOSError(EBiosError.UNKNOWN, "#server_browser_error_unknown");
107 InsertBIOSError(EBiosError.BAD_SCRIPT, "#STR_BIOS_LinkageError");
108 }
EBiosError
Possible Error codes for bios API. This is the list of errors that can be returned from bios API....
void InsertErrorProperties(int code, string message="")
Insert an error with no handling.
void InsertBIOSError(int code, string message)

References InsertBIOSError(), and InsertErrorProperties().

◆ InitOptionalVariables()

override void BIOSErrorModule::InitOptionalVariables ( )
inlineprivate

Definition at line 69 of file BIOSErrorModule.c.

70 {
71 super.InitOptionalVariables();
72
73 m_Header = "#STR_BIOS_BIOSError";
74 }
class ErrorHandlerModule m_Header
This is where to input logic and extend functionality of ErrorHandlerModule.

References m_Header.

◆ InsertBIOSError()

void BIOSErrorModule::InsertBIOSError ( int code,
string message )
inlineprivate

Definition at line 110 of file BIOSErrorModule.c.

111 {
112#ifdef PLATFORM_CONSOLE
114#else
116#endif
117 }
void InsertDialogueErrorProperties(int code, string message, int dialogButtonType=DBT_OK, int defaultButton=DBB_OK, int dialogMeaningType=DMT_EXCLAMATION, bool displayAdditionalInfo=true)
Insert an error with Dialogue as handling, using the Optional Variables.

References InsertDialogueErrorProperties(), and InsertErrorProperties().

Referenced by FillErrorDataMap().


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