throw
Throw a previously-constructed exception.
Syntax
Section titled “Syntax”throw(ME)Description
Section titled “Description”Aborts execution and propagates the exception object ME. Equivalent to error(ME.identifier, ME.message) but preserves the full exception structure for catch blocks to inspect.
Example
Section titled “Example”ME = MException('MyApp:bad', 'oops'); throw(ME)See also
Section titled “See also”MException— Construct an exception object.error— Throw an error.addCause— Attach a cause exception to a base exception.