new SFSErrorCodes()

Developers never istantiate the SFSErrorCodes class: only use its static properties.

Method

static

setErrorMessage(code, message)

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

NOTE: you have to make sure you maintain all the placeholders while modifying a message.

Example

This example shows how to translate error 13 to French language retaining the required placeholders:

function someMethod()
{
	SFS2X.ErrorCodes.setErrorMessage(13, "Le Groupe demandé n'est pas disponible - Salle: {0}; Groupe: {1}");
}

Parameters

Name Type Optional Description

code

number

 

The code of the error message to be modified.

message

string

 

The new error message, including the placeholders for runtime informations.