16 void HandleError(
int errorCode,
string additionalInfo =
"") {}
20 if ( additionalInfo !=
"" )
28 if ( additionalInfo !=
"" )
45 void DialogueErrorProperties(
string message,
string serverMessage,
string header,
UIScriptedMenu handler = null,
int dialogButtonType = DBT_OK,
int defaultButton = DBB_OK,
int dialogMeaningType = DMT_EXCLAMATION,
bool displayAdditionalInfo =
true)
55 override void HandleError(
int errorCode,
string additionalInfo =
"")
66 message =
string.
Format(EP_MESSAGE_FORMAT_STRING, m_Message, additionalInfo);
class ErrorHandlerModule m_Header
This is where to input logic and extend functionality of ErrorHandlerModule.
int GetDialogButtonType()
protected int m_DialogButtonType
protected bool m_DisplayAdditionalInfo
int GetDialogMeaningType()
void DialogueErrorProperties(string message, string serverMessage, string header, UIScriptedMenu handler=null, int dialogButtonType=DBT_OK, int defaultButton=DBB_OK, int dialogMeaningType=DMT_EXCLAMATION, bool displayAdditionalInfo=true)
UIScriptedMenu GetHandler()
class ErrorProperties m_Header
Error which shows a generic Dialogue UI.
protected int m_DialogMeaningType
protected int m_DefaultButton
protected UIScriptedMenu m_Handler
proto native UIManager GetUIManager()
The error handler itself, for managing and distributing errors to modules Manages the ErrorHandlerMod...
static proto owned string GetErrorHex(int errorCode)
Returns a formatted string of the error code.
Class which holds the properties and handling of an error.
void ErrorProperties(string message, string serverMessage)
protected string m_ServerMessage
Message which will appear on Server.
protected string m_Message
Message which will appear on Client.
const string EP_HEADER_FORMAT_STRING
Formating for header (%1 = Header; %2 = ErrorCode)
void HandleError(int errorCode, string additionalInfo="")
string GetClientMessage(string additionalInfo="")
string GetServerMessage(string additionalInfo="")
const string EP_MESSAGE_FORMAT_STRING
Formating for message (%1 = Message; %2 = AdditionalInfo)
proto native void ShowDialog(string caption, string text, int id, int butts, int def, int type, UIScriptedMenu handler)
Shows message dialog.
proto native CGame GetGame()
static proto string Format(string fmt, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
Gets n-th character from string.