Error API for Application Development Matlab script

SPONSORED LINKS

    Specification

  • Version:
  • File size: 0 KB
  • File name: errorAPI.zip
  • Last update:
  • Platform: Windows / Linux / Mac OS / BSD / Solaris
  • Language: Matlab
  • Price:Freeware
  • Company: Malcolm Wood (View more)

Error API for Application Development script description:




Publisher review:
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 is a Matlab script for Development Tools scripts design by Malcolm Wood. It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.

Operating system:
Windows / Linux / Mac OS / BSD / Solaris

Latest script and internet news

222

222

22

Posted on: 18 Jul 2023 22:27 by A. Brown

111

111

111

Posted on: 18 Jul 2023 22:24 by A. Brown

The permanently active Push system offered by the new Google Chrome 42

The permanently active Push system offered by the new Google Chrome 42

Hacked By !Sc-sT

Posted on: 17 Mar 2015 07:57 by A. Brown

SPREAD THE WORD

User Rating


Rating: 2.2 out of 5
Based on 13 ratings. 13 user reviews.

  • Currently 2.15 out of 5
  • 1
  • 2
  • 3
  • 4
  • 5