Click or drag to resize

SFSErrorCodesSetErrorMessage Method

Sets the text of the error message corresponding to the passed error code.

Namespace:  Sfs2X.Util
Assembly:  SmartFox2X (in SmartFox2X.dll) Version: 1.8.0.0 (1.8.0)
Syntax
C#
public static void SetErrorMessage(
	int code,
	string message
)

Parameters

code
Type: SystemInt32
The code of the error message to be modified.
message
Type: SystemString
The new error message, including the placeholders for runtime informations.
Remarks
Make sure to maintain all the placeholders while modifying the messages.
Examples
The following example shows how to translate error 13 to French language retaining the required placeholders:
SFSErrorCodes.SetErrorMessage(13, "Le Groupe demandé n'est pas disponible - Salle: {0}; Groupe: {1}");
See Also