MatrixBerryCore
throwwarn.m
Go to the documentation of this file.
1 function throwwarn(msgTag,varargin)
2 import mxberry.core.getcallername;
3 callerName=getcallername(2,'full');
4 callerName=strrep(callerName,'.',':');
5 warnId=[upper(callerName),':',msgTag];
6 warning(warnId,varargin{:});
function throwwarn(in msgTag, in varargin)
THROWWARN works similarly to built-in WARNING function in case when there is no output arguments but ...
function getcallername(in nStepsUp, in mode)
GETCALLERNAME returns a name of caller determined by a number of steps up in the call stacks...