ME = addCorrection(ME, correction)
ME = ME.addCorrection(correction)
| Parameter | Description |
|---|---|
| ME | a scalar MException object. |
| correction | a nelson.lang.correction.AppendArgumentsCorrection, nelson.lang.correction.ConvertToFunctionNotationCorrection, or nelson.lang.correction.ReplaceIdentifierCorrection object. |
| Parameter | Description |
|---|---|
| ME | a new MException object containing the correction. |
addCorrection returns a new MException object with the Correction property set to correction.
Nelson correction objects are nelson.lang.correction.AppendArgumentsCorrection, nelson.lang.correction.ConvertToFunctionNotationCorrection, and nelson.lang.correction.ReplaceIdentifierCorrection.
ME = MException('nelson:missingArgument', 'Missing argument.');
correction = nelson.lang.correction.AppendArgumentsCorrection('value');
ME = addCorrection(ME, correction)
ME.Correction
| Version | Description |
|---|---|
| 2.0.0 | initial version |