correction = nelson.lang.correction.ReplaceIdentifierCorrection(identifier, replacement)
| Paramètre | Description |
|---|---|
| identifier | identifiant incorrect dans l'appel de fonction. |
| replacement | identifiant de remplacement. |
| Paramètre | Description |
|---|---|
| correction | un objet nelson.lang.correction.ReplaceIdentifierCorrection. |
Utilisez les objets nelson.lang.correction.ReplaceIdentifierCorrection dans les fonctions qui levent un objet MException.
correction = nelson.lang.correction.ReplaceIdentifierCorrection(identifier, replacement) cree une correction qui suggere de remplacer identifier par replacement dans l'appel de fonction qui a leve l'objet MException.
Les proprietes en lecture seule Identifier et Replacement contiennent l'identifiant incorrect et l'identifiant de remplacement.
ME = MException('nelson:unknownName', 'Unknown identifier.');
correction = nelson.lang.correction.ReplaceIdentifierCorrection('oldName', 'newName');
ME = addCorrection(ME, correction)
ME.Correction.Replacement
| Version | Description |
|---|---|
| 2.0.0 | version initiale |