MException.last
Return or reset last uncaught MException.
📝Syntax
exception = MException.last
MException.last('reset')
📤Output Arguments
Parameter Description
exception a MException object.
📄Description

MException.last returns the last uncaught exception recorded by the evaluator. Exceptions handled by a catch block do not update it.

MException.last('reset') clears the recorded exception.

💡Examples
MException.last('reset');
exception = MException.last
🔗See Also
MExceptionlasterrorgetLastReport
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub