Error API for Application Development script download - Error API for Application Development Error API for Application Development - An API to as

Error API for Application Development script Publisher Review:


Error API for Application Development Error API for Application Development - An API to assist with error reporting in MATLAB applications
Error API for Application Development - An API to assist with error reporting in MATLAB applications Those of us developing graphical applications in MATLAB do not want our users to be exposed to the internals of our work. Unfortunately, the built-in "error" function prefixes to the error message the name of the function which threw that error, which is unlikely to be of any interest to the user and serves only to confuse. This is particularly true when using the MATLAB Compiler to create applications for use by people with no knowledge of MATLAB.The API supplied here provides a wrapper for the "error" function which stores the error message without that extra line, so that it can be retrieved later and shown to the user.To use this functionality, replace calls to "error" with identical calls to "xError", e.g.:error('MyApplication:MyErrorIdentifier','This operation did not work because %s',reason);becomes:xError('MyApplication:MyErrorIdentifier','This operation did not work because %s',reason);Also, replace calls to "lasterr" or "lasterror" with "xLastErr" or "xLastError" respectively, creating e.g.function my_uicallbacktrymy_function_name;catcherrordlg(xLastErr,'My Application','modal');endThe error message shown to the user is then simply (e.g.):This operation did not work because the file was not foundinstead of:Error using ==> my_function_nameThis operation did not work because the file was not foundFor debugging purposes, the error message and the call stack at the point when it was thrown are stored in a log file in the user's preference directory. The log can also be used to store status messages from the application. See function xLog.If the last error was thrown using "error" instead of "xError", "xLastError" detects this. This ensures that the wrong error message is never shown, and means that errors thrown by built-in functions (or the interpreter) can be logged too.Use the buttons in the supplied demo function "xDemo" to see the difference. Requirements: · MATLAB Release: R14SP3

Error API for Application Development script details and screenshot


Screenshot:

Rating: 6 Votes:
Rating for Error API for Application Development script: 6 from  votes
Rate this software:


Scan computer and update all your drivers before downloading.

Release date: 2009-07-08
Last update: 2009-07-08
Platform: Windows / Linux / Mac OS / BSD / Solaris
Language: Matlab
Price:Freeware $
Company: Malcolm Wood
Info url: http://www.mathworks.com/matlabcentral/fileexchange/loadAuthor.do?objectType=author&objectId=1094844




Download Error API for Application Development script
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
GPP application script      
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
getAbsPath script 1.4     
getAbsPath getAbsPath is a C header (getAbsPath.h) or an ANSI C tool (getAbsPath) which co
Price: GPL$, Rating: 6, Downloads: 0
Meteora script 0.4     
Meteora Meteora is set of cross-browser widgets and controls that allows you to quickly wr
Price: Freeware$, Rating: 6, 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
PHP4Delphi script      
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