comparison m-toolbox/classes/+utils/@helper/err.m @ 0:f0afece42f48

Import.
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Wed, 23 Nov 2011 19:22:13 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f0afece42f48
1 % ERR prints the error message to the MATLAB terminal and to the
2 % workbench console.
3 %
4 % CALL: utils.helper.err(message)
5 %
6 % INPUTS:
7 % message - the message string to print
8 %
9 %
10 % M Hewitson 04-02-10
11 %
12 % $Id: msg.m,v 1.10 2010/01/08 14:37:41 ingo Exp $
13 %
14
15 function err(msg)
16
17 wb = getappdata(0, 'LTPDAworkbench');
18 if isa(wb, 'LTPDAworkbench')
19 wb.addErrorMessage(msg);
20 end
21 error(msg);
22
23 end