addCause
Record additional causes of exception
Description
modifies the existing baseException = addCause(baseException,causeException)MException object
baseException by appending
causeException to its cause property.
Catching the resulting exception in a try/catch statement makes
the base exception, along with all of the appended cause records, available to help
diagnose the error.
Examples
Input Arguments
Extended Capabilities
Version History
Introduced in R2007b
See Also
throw | rethrow | throwAsCaller | MException.last | assert | try, catch | error