FUNCTION REFERENCE

addCause

Append an exception to another exception's cause list.

Append an exception to another exception's cause list.

Syntax

exception = addCause(exception, cause)

Example

e=addCause(MException('a:b','outer'),MException('c:d','inner')); e.cause{1}.message   % inner

Differences from MATLAB: Uses tagged structure storage.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.