correction = nelson.lang.correction.AppendArgumentsCorrection(arguments)
| Parameter | Description |
|---|---|
| arguments | suggested arguments, specified as a string, a character vector, or a cell array of character vectors. |
| Parameter | Description |
|---|---|
| correction | a nelson.lang.correction.AppendArgumentsCorrection object. |
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.
ME = MException('nelson:notEnoughInputs', 'Not enough input arguments.');
correction = nelson.lang.correction.AppendArgumentsCorrection('"world"');
ME = addCorrection(ME, correction)
ME.Correction.Arguments
| Version | Description |
|---|---|
| 2.0.0 | initial version |