report = getReport(ME)
report = getReport(ME, type)
report = ME.getReport(type)
| Parameter | Description |
|---|---|
| ME | a scalar MException object. |
| type | 'basic' or 'extended'. |
| Parameter | Description |
|---|---|
| report | a string: formatted exception report. |
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.
ME = MException('nelson:badIndex', 'Unable to index into array.');
getReport(ME, 'basic')
| Version | Description |
|---|---|
| 2.0.0 | initial version |