getReport
Get MException report.
📝Syntax
report = getReport(ME)
report = getReport(ME, type)
report = ME.getReport(type)
📥Input Arguments
Parameter Description
ME a scalar MException object.
type 'basic' or 'extended'.
📤Output Arguments
Parameter Description
report a string: formatted exception report.
📄Description

getReport returns a formatted report for an MException object.

The basic report contains the exception message. The extended report includes additional diagnostic information when available.

💡Examples
ME = MException('nelson:badIndex', 'Unable to index into array.');
getReport(ME, 'basic')
🔗See Also
MExceptionaddCausethrowgetLastReport
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub