IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
irerror.m
Go to the documentation of this file.
1 %>@ingroup usercomm
2 %>@file
3 %>@brief Verboses and throws an Exception
4 %>
5 %> Exceptions raised by this function represent bad usage, and not necessarily a bug
6 function irerror(s)
7 irverbose(['{ERROR}', s], 3);
8 % dbstack();
9 s = strrep(s, '\', '\\'); % I think that MATLAB uses s as first argument o a printf()-like function, which messes the message if it has backslashes!
10 throw(MException('IRootLab:bad', s));
function irverbose(in s, in level)
function irerror(in s)