Programming Previous page   Next Page

Error Handling


In many cases, it is desirable to take specific actions when different kinds of errors occur. For example, you may want to prompt the user for more input, display extended error or warning information, or repeat a calculation using default values. The error handling capabilities in MATLAB let your application check for particular error conditions and execute appropriate code depending on the situation.

Checking for Errors with try-catch
Checking for errors that occur in your programs using the try and catch functions
Handling and Recovering from an Error
Reporting errors and identifying what caused them; regenerating errors
Message Identifiers
Attaching an identifier to an error or warning to enable you to better identify what caused it, and also for selective warning control
Warnings
Identifying warnings and identifying what caused them
Warning Control
Controlling the action taken when a warning is encountered
Debugging Errors and Warnings
Stopping code execution in the debugger on the occurrence of an error or warning


Previous page  Performing FTP File Operations Checking for Errors with try-catch Next page

© 1994-2005 The MathWorks, Inc.