nelson.lang.correction.AppendArgumentsCorrection
Correct error by appending missing input arguments.
📝Syntax
correction = nelson.lang.correction.AppendArgumentsCorrection(arguments)
📥Input Arguments
Parameter Description
arguments suggested arguments, specified as a string, a character vector, or a cell array of character vectors.
📤Output Arguments
Parameter Description
correction a nelson.lang.correction.AppendArgumentsCorrection object.
📄Description

Use nelson.lang.correction.AppendArgumentsCorrection objects in functions that throw a MException object.

correction = nelson.lang.correction.AppendArgumentsCorrection(arguments) creates a correction that suggests appending input arguments to the function call that threw the MException object.

The read-only Arguments property contains the suggested arguments.

💡Examples
ME = MException('nelson:notEnoughInputs', 'Not enough input arguments.');
correction = nelson.lang.correction.AppendArgumentsCorrection('"world"');
ME = addCorrection(ME, correction)
ME.Correction.Arguments
🔗See Also
addCorrectionnelson.lang.correction.ConvertToFunctionNotationCorrectionnelson.lang.correction.ReplaceIdentifierCorrection
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub