handleError script Publisher Review:
handleError handleError - A general-purpose error-handling function with an ability to register automatic cleanup actions
handleError - A general-purpose error-handling function with an ability to register automatic cleanup actions handleError is a general-purpose error-handling function. The user can register cleanup actions that will automatically be activated in case of error. If an error occurred and handleError is called, then a hyper-linked stack-trace is displayed in the command window.Syntax:ERRMSG = handleErrorACTIONIDX = handleError('register',ACTION)ERRMSG = handleError('unregister',ACTIONIDX)ACTIONIDX = handleError('register',ACTION) will register cleanup actions to be performed in case of error. ACTION may be a single string (e.g., 'msgbox(lasterr)') or a cell array with arguments for the sprintf function (e.g., {'set(%.19g,''Pointer'',''arrow'')',gcf}). The returned ACTIONIDX is the sequential cleanup action index.ERRMSG = handleError('unregister',ACTIONIDX) will perform and unregister cleanup action(s) ACTIONIDX. The returned ERRMSG is the last error msg.ERRMSG = handleError; will automatically perform and unregister any registered cleanup actions. Then, the last error message will be displayed in the Command Window, followed by a hyper-linked stack trace of that error. This format is the one that should be used within catch blocks (see Example):Example:try. cleanups(1)=handleError('register',{'set(%.19g,''Pointer'',''arrow'')',gcf});. cleanups(2)=handleError('register','disp(''finished processing!'')');. set(gcf,'Pointer','watch'); drawnow;. ... some complex computation .... handleError('unregister',cleanups); %eval & unregister cleanup actionscatch. handleError; %display error stack; eval & unregister cleanup actionsendCompatibility:Created on Matlab 7, but should work on earlier versions too. Requirements: · MATLAB Release: R14SP3handleError script details and screenshot
RECOMMENDED TOOLS
Related tags:
Related downloads
Jabuti script 1.3.0
Jabuti Jabuti script inserts values from a values file into a template file.
Price: GPL$, Rating: 6, Downloads: 0
Jabuti Jabuti script inserts values from a values file into a template file.
Price: GPL$, Rating: 6, Downloads: 0
GPP application script
GPP application GPP application is a general-purpose preprocessor with customizable syntax
Price: LGPL$, Rating: 8, Downloads: 0
GPP application GPP application is a general-purpose preprocessor with customizable syntax
Price: LGPL$, Rating: 8, Downloads: 0
AutoScroll for jQuery script
AutoScroll for jQuery AutoScroll for jQuery is a small jQuery plugin that allows for hotsp
Price: Other Free / Open So$, Rating: 5, Downloads: 0
AutoScroll for jQuery AutoScroll for jQuery is a small jQuery plugin that allows for hotsp
Price: Other Free / Open So$, Rating: 5, Downloads: 0
OpenLaszlo script 4.0.7
OpenLaszlo OpenLaszlo is an open source platform for creating zero-install web application
Price: GPL$, Rating: 9, Downloads: 0
OpenLaszlo OpenLaszlo is an open source platform for creating zero-install web application
Price: GPL$, Rating: 9, Downloads: 0
PHP4Delphi script
PHP4Delphi PHP4Delphi - PHP extensions development framework
Price: Other Free / Open So$, Rating: 10, Downloads: 0
PHP4Delphi PHP4Delphi - PHP extensions development framework
Price: Other Free / Open So$, Rating: 10, Downloads: 0
purple-include script 0.8
purple-include purple-include is a client-side JavaScript library that allows you to do cl
Price: Other Free / Open So$, Rating: 8, Downloads: 0
purple-include purple-include is a client-side JavaScript library that allows you to do cl
Price: Other Free / Open So$, Rating: 8, Downloads: 0
Dodos RanGen script 1.0
Dodos RanGen Dodos RanGen is a php random generator script that may generate random links,
Price: Freeware$, Rating: 6, Downloads: 0
Dodos RanGen Dodos RanGen is a php random generator script that may generate random links,
Price: Freeware$, Rating: 6, Downloads: 0
Validat Data Validation Engine script
Validat Data Validation Engine Validat Data Validation Engine is a data validation engine,
Price: Other Free / Open So$, Rating: 8, Downloads: 0
Validat Data Validation Engine Validat Data Validation Engine is a data validation engine,
Price: Other Free / Open So$, Rating: 8, Downloads: 0
