Skip to content

AFNI/NIfTI Server

Sections
Personal tools
You are here: Home » AFNI » Documentation

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_   ) 
 

else fprintf ,
'\nWarning from%s:%s\n\n ,
FuncName  ,
 

end For the error message fprintf ,
'\a\nError in%s:%s\n\n ,
FuncName  ,
 

otherwise fprintf ,
'\nError in  ErrEval,
prefix%s from%s is ambiguous.\nReturning a 1 decision.\n\n\a'  ,
tmp  ,
ErrCode 
 

end fprintf ,
'\nError in  ErrEval,
ErrCode%s is ambiguous.\nReturning a 1 decision.\n\n\a'  ,
ErrCode 
 

end For the error message if Decis   ) 
 

end if  ) 
 


Variable Documentation

case BadInOut
 

Definition at line 75 of file ErrEval.m.

case BadOptCombo
 

Definition at line 93 of file ErrEval.m.

switch tmp case No Decis = ErrEval (FuncName, ErrCode)
 

Definition at line 71 of file ErrEval.m.

case EmptyInp
 

Definition at line 95 of file ErrEval.m.

case FileExist
 

Definition at line 97 of file ErrEval.m.

case FileNotExist
 

Definition at line 99 of file ErrEval.m.

case InpFieldMiss
 

Definition at line 89 of file ErrEval.m.

end Ziad Saad Thu Mar
 

Definition at line 42 of file ErrEval.m.

switch case No
 

Definition at line 835 of file IndiAna.m.

Referenced by calculate_acontrasts(), calculate_bcontrasts(), and calculate_xcontrasts().

case OptFieldMiss
 

Definition at line 91 of file ErrEval.m.

end return
 

Definition at line 112 of file ErrEval.m.

otherwise s = 'Bad size of at least one of the input parameters.'
 

Definition at line 102 of file ErrEval.m.

end tmp = ErrCode(1:3)
 

Definition at line 67 of file ErrEval.m.

 

Powered by Plone

This site conforms to the following standards: