FUNCTION REFERENCE
rethrow
Raise a caught error again.
Raise a caught error again.
Syntax
rethrow(err)Takes one scalar struct with a character message and optional character identifier. Raises that message and identifier for an enclosing catch block. The stack field is not restored, and an empty message still raises an error.
Example
try; try; error('r:q','rq 3'); catch e; rethrow(e); end; catch outer; disp(outer.message); end % rq 3Differences from MATLAB: MatRust uses structs with an empty stack, not MException objects.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.