Doxygen Source Code Documentation
ErrEval.m File Reference
Go to the source code of this file.
|
Functions |
This function displays an
error message based on ErrCode
and returns if it s a lethal | error (Err_) |
end | if (length(ErrCode)< 5) |
end | fprintf (2,'\nError in ErrEval, ErrCode%s is ambiguous.\nReturning a 1 decision.\n\n\a', ErrCode) |
otherwise | fprintf (2,'\nError in ErrEval, prefix%s from%s is ambiguous.\nReturning a 1 decision.\n\n\a', tmp, ErrCode) |
end For the error message | if (Decis) |
end For the error message | fprintf (2,'\a\nError in%s:%s\n\n', FuncName, s) |
else | fprintf (2,'\nWarning from%s:%s\n\n', FuncName, s) |
Variables |
function | Decis = ErrEval (FuncName, ErrCode) |
This function displays an
error message based on ErrCode
and returns if it s a lethal
or if it s an error or a warning(Wrn_) that does not require
aborting a function%%%ErrCode
is a string made out of two
parts%The first part is a
4 letter string containing%Err_ or Wrn_ depending on
wether it's an error or%a
warning.%The second part is
a string that indicates the
type of%error encountered.%%Defined values of ErrCode
are | return |
end Ziad Saad Thu | Mar |
end Ziad Saad Thu | No |
end | tmp = ErrCode(1:3) |
case BadInpSize | s = 'Bad size of at least one of the input parameters.' |
case | BadInOut |
case | InpFieldMiss |
case | OptFieldMiss |
case | BadOptCombo |
case | EmptyInp |
case | FileExist |
case | FileNotExist |
Function Documentation
This function displays an error message based on ErrCode and returns if it s a lethal error |
( |
Err_ |
|
) |
|
|
end For the error message fprintf |
( |
2 |
, |
|
|
'\a\nError in%s:%s\n\n' |
, |
|
|
FuncName |
, |
|
|
s |
|
|
) |
|
|
otherwise fprintf |
( |
2 |
, |
|
|
'\nError in |
ErrEval, |
|
|
prefix%s from%s is ambiguous.\nReturning a 1 decision.\n\n\a' |
, |
|
|
tmp |
, |
|
|
ErrCode |
|
|
) |
|
|
end fprintf |
( |
2 |
, |
|
|
'\nError in |
ErrEval, |
|
|
ErrCode%s is ambiguous.\nReturning a 1 decision.\n\n\a' |
, |
|
|
ErrCode |
|
|
) |
|
|
Variable Documentation