nelson.lang.correction.AppendArgumentsCorrection
Corrige une erreur en ajoutant des arguments manquants.
📝Syntaxe
correction = nelson.lang.correction.AppendArgumentsCorrection(arguments)
📥Arguments d'entrée
Paramètre Description
arguments arguments suggeres, specifies sous forme de chaine, vecteur de caracteres ou tableau cellulaire de vecteurs de caracteres.
📤Arguments de sortie
Paramètre Description
correction un objet nelson.lang.correction.AppendArgumentsCorrection.
📄Description

Utilisez les objets nelson.lang.correction.AppendArgumentsCorrection dans les fonctions qui levent un objet MException.

correction = nelson.lang.correction.AppendArgumentsCorrection(arguments) cree une correction qui suggere d'ajouter les arguments d'entree arguments a l'appel de fonction qui a leve l'objet MException.

La propriete en lecture seule Arguments contient les arguments suggeres.

💡Exemples
ME = MException('nelson:notEnoughInputs', 'Not enough input arguments.');
correction = nelson.lang.correction.AppendArgumentsCorrection('"world"');
ME = addCorrection(ME, correction)
ME.Correction.Arguments
🔗Voir aussi
addCorrectionnelson.lang.correction.ConvertToFunctionNotationCorrectionnelson.lang.correction.ReplaceIdentifierCorrection
🕔Historique des versions
Version Description
2.0.0 version initiale
Modifier cette page sur GitHub