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

Namespace: Sfs2X.Util
Assembly: SmartFox2X (in SmartFox2X.dll) Version: 1.7.3.0 (1.7.3)

Syntax

C#
public static void SetErrorMessage(
	int code,
	string message
)

Parameters

code
Type: System..::..Int32
The code of the error message to be modified.
message
Type: System..::..String
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:
 Copy imageCopy
SFSErrorCodes.SetErrorMessage(13, "Le Groupe demandé n'est pas disponible - Salle: {0}; Groupe: {1}");

See Also