addCorrection
Add correction to MException.
📝Syntax
ME = addCorrection(ME, correction)
ME = ME.addCorrection(correction)
📥Input Arguments
Parameter Description
ME a scalar MException object.
correction a nelson.lang.correction.AppendArgumentsCorrection, nelson.lang.correction.ConvertToFunctionNotationCorrection, or nelson.lang.correction.ReplaceIdentifierCorrection object.
📤Output Arguments
Parameter Description
ME a new MException object containing the correction.
📄Description

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.

💡Examples
ME = MException('nelson:missingArgument', 'Missing argument.');
correction = nelson.lang.correction.AppendArgumentsCorrection('value');
ME = addCorrection(ME, correction)
ME.Correction
🔗See Also
MExceptionaddCausegetReportnelson.lang.correction.AppendArgumentsCorrectionnelson.lang.correction.ConvertToFunctionNotationCorrectionnelson.lang.correction.ReplaceIdentifierCorrection
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub