Documentation Center

  • Trial Software
  • Product Updates

Exception Handling

Capture and retrieve data on causes of errors

MATLAB Language Syntax

try, catch Execute statements and catch resulting errors


addCause (MException) Record additional causes of exception
getReport (MException) Get error message for exception
last (MException) Last uncaught exception
rethrow (MException) Reissue existing exception
throw (MException) Issue exception and terminate function
throwAsCaller (MException) Throw exception as if from calling function


MException Capture error information
Was this topic helpful?