IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
send_error.m
Go to the documentation of this file.
1 %>@ingroup usercomm
2 %>@file
3 %>@brief Shows Bug dialogbox and rethrows error
4 %>
5 %> Verifies whether the error is a malfunction of bad usage. If the former, shows the bug dialog and rethrows. Otherwise, just rethrows.
6 
7 function send_error(ME)
8 
9 if ~strcmp(ME.identifier, 'IRootLab:bad')
10  buggui(ME);
11 else
12  irerrordlg(ME.message, 'Error!');
13 end;
14 rethrow(ME);
function send_error(in ME)
function irerrordlg(in errorstring, in dlgname)