FUNCTION REFERENCE
throwAsCaller
Raise an MException with the caller as its stack origin.
Raise an MException with the caller as its stack origin.
Syntax
throwAsCaller(exception)Example
try, throwAsCaller(MException('pkg:id','failed')); catch e, e.message, end % failedDifferences from MATLAB: Stack line numbers are not tracked.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.