rethrow
R2026b(Not recommended) Reissue error
rethrow called with a structure is not recommended. Call rethrow with an MException object. For more information, see
Version History.
Syntax
Description
rethrow( reissues the error
specified by errorStruct)errorStruct. The currently running function terminates and
control returns to the keyboard (or to any enclosing catch block).
Examples
Input Arguments
Tips
If the stack field is specified, the stack of the rethrown error will
be set to that value. Otherwise, the stack will be set to the line at which the rethrow
occurs.
Extended Capabilities
Version History
Introduced before R2006aSee Also
rethrow | throwAsCaller | throw | assert | error | MException | try, catch