Home > By category > Scripts >Flash > Error API for Application Development



Error API for Application Development

  • Downloads: 
  • Views: 
  • Rating:

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_uicallback
try
my_function_name;
catch
errordlg(xLastErr,'My Application','modal');
end

The error message shown to the user is then simply (e.g.):

This operation did not work because the file was not found

instead of:

Error using ==> my_function_name
This operation did not work because the file was not found

For 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.

Free download from Shareware Connection - Those of us developing graphical applications in MATLAB do not want our users to be exposed to the internals of our work.

Publisher: Malcolm Wood | License: Freeware | Price: 0.00
Version: 1.0 | Size: 20 KB | Platform: Matlab, Scripts
Released Date: 06-03-2013 | Rating: 0 | Title: Error API for Application Development

Author Url: http://www.mathworks.com/
Program Info Url: http://www.mathworks.com/
Download Url: http://www.mathworks.com/matlabcentral/fx_files/10628/3/errorAPI.zip

More downloads from Error API for Application Development publisher Malcolm Wood:

Resizable MATLAB figures - This is a layout manager for axes and controls in a MATLAB figure, designed for graphical user interfaces in which, during resizing of the figure, some controls (e.g. buttons) are to remain the same size while others (e.g. axes, text fields, list box

Plot Stock Prices - A very simple function which uses the DataFeed toolbox to retrieve stock prices for a specified number of days from the Yahoo service and plots them. e.g.

Run M-Lint on a directory tree and filter results - This function addresses two of the major shortcomings of the M-Lint report which is available in the MATLAB Directory Browser

CVS Differences Report - An easy-to-use MATLAB function which lets you quickly review the changes to files in a CVS sandbox.

Assertion function - Widely used in languages such as C and (now) Java

Error API for Application Development keywords:
Error API for Application Development related downloads:

Aobo Filter for Mac Standard - Aobo Filter for Mac Standard is an internet filtering and website blocking application that helps Mac OS X users to block adult websites, stop games, applications and record visited websites on Mac. Aobo Filter for Mac Standard provides 5-day free tr

SugarSync API for Python - SugarSync API for Python is a handy and reliable wrapper designed for SugarSync developers.

Java API for KML - Java API for KML (JAK) will provide users with automatically generated full reference implementation of the KML object model defined by OGC’s KML standard and Google’s GX extensions.

Aobo Filter for Mac Professional - Aobo Filter for Mac Professional is an internet filtering and website blocking application that helps Mac OS X users to block adult websites, stop games, applications and record visited websites on Mac. Aobo Filter for Mac provides 5-day free trial.

Stop Error 0x000000aa Fix - Stop error 0x000000aa is the blue screen of death that you will have to face while working on the recently installed driver. Due to obsolete or out dated driver you will get this error message. Latest Driver updates can help you in this regard.

Shareware Connection periodically updates pricing and software information of 'Error API for Application Development' from company source 'Malcolm Wood' , so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft,  Using 'Error API for Application Development' crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Error API for Application Development.

New Reviews

BitKiller - Dealing with various types of data efficiently holds the key to success in any computing task. Apart from generating new data and modifying existing files, it becomes necessary to delete existing files at times. While most users resort to using ...

Style Jukebox - No matter if you use a computer for personal needs or work in a networked setup, listening to music is commonplace. It is required for relaxation amidst work and nearly every user indulges in it. For music playback on PC, the WMP is not the only ...

Efham internet booster - Without using the web, you cannot accomplish a lot of things in life easily. However, the speed of internet access does play a role behind your web usage experience. At times, you may have to cope with sluggish web page rendering, buffering while ...

Xvirus Personal Guard - Nowadays, it is quite risky to use a computer without having suitable security suite or antivirus installed in it. Your computer’s security can be breached any moment without a suitable antivirus or Internet security software. There are so ...

PC DeCrapifier - There is hardly any computer user who does not want to keep the PC running at top speed. However, unnecessary software and bloatware can reduce the speed and performance of your PC. Such Apps often come pre installed with laptops and desktops. ...

LastPass - Nearly every computer and internet users need to deal with a lot of passwords and this number only goes up with time! Remembering so many passwords becomes tedious with time and that can add to inconvenience. While you can assign the task of ...

Argente Utilities - You can find so many third party utilities that can be used to maintain a Windows based PC and extract maximum performance from it. While these tools offer better performance than Windows in-built utilities, the plethora of choices can make ...

FortiClient Standard - Every computer user needs to have adequate protection for his system and this holds true for corporate and network users. In business setups, where multiple desktops and servers are connected to a network, using regular antivirus suite may be ...

Windows Media Player - There is hardly any Windows user who has not used Windows Media Player. This app was bundled with nearly each version of Windows and whether you like or dislike the software, it is likely you had a brush with it during your initial days with the ...

ArtSage - PC users often need to make use of third party applications for making slideshows. While Windows inbuilt utility for viewing images and running slideshows keeps getting better with time, for many users third party apps seem better option. If you ...




New Downloads

Pangu9

Pangu 9 download is now only
available for windows OS and
we can hope that they will
release pangu9 MAC version
recently. ...

Booking Management System

Our booking management system
is entirely customisable and
scales to grow with your
business. It is the most
flexible ...

Website Monitoring -
Performance Monitoring

Website monitoring,
performance, and uptime
management tool. Run this
script as often as you'd like
your website monitored.

Ez Imgur Clone

Ez Imgur Clone enables you to
launch your very own media
sharing portal in minutes.
It's absolutely the best
solution in ...

Absolute src

This Drupal module parses
relative urls to absolute urls
dynamically.

getOdC

Based on Physica A 375 (2007)
365 373.

Flashy

We found that there was a
shortage of flash video
wrapper players in the world
that were released under a
fully-Free license.

Time Reversal simulation

It is Time Reversal simulation
in Matlab.

Particle Filter Color
Tracker

A simple example demonstrating
how to track an object with
particle filter

London2012 Script

This Flash script will display
a banner that will count down
the time remained until the
2012 London Summer Olympics

PHP Running Management

PHP Running Management or
phpRunMan is a set of scripts
for runners.

Test Tools - Utilities for
unit tests

This package is a set of tools
that facilitate debugging or
writing unit test for MATLAB
functions.