Skip to content

rethrow

builtin · libnexusinterp/corefcn/error-proprietary.cc

: rethrow (err)

Raise the exception described by err again.

err is a structure with the fields message and identifier (and optionally stack) or an MException object. The message is used as given.

Unlike throw, rethrow preserves a non-empty stack from err instead of rebuilding it at the rethrow site (MATLAB R2026a).