Report the error for the supplied error code that is assumed to occur within the named function.
| Return Type | Function name | Arguments |
|---|---|---|
| hzEcode | hzret | (hzEcode,const char*,) |
Declared in file: hzProcess.h
Defined in file : hzError.cpp
Function Logic:
Function body:
hzEcode hzret (hzEcode eError)const char* va_alist,
{
// Report the error for the supplied error code that is assumed to occur within the named function.
//
// Arguments: 1) eError Error code
// 2) va_alist Variable argument message
//
// Returns: Enum error code as supplied
va_list ap1 ; // Variable arguments list
const char* fmt ; // Format control string
hzChain E ; // Error chain
hzLogger* pLog ; // Output logfile
// Do the args
va_start(ap1, va_alist) ;
fmt = va_alist ;
// _makeErrmsg(E, HZ_ERROR, eError) ;
E._vainto(fmt, ap1) ;
va_end(ap1) ;
E.AddByte(CHAR_NL) ;
pLog = GetThreadLogger() ;
if (!pLog)
std::cerr << E ;
else
{
if (pLog->IsOpen())
pLog->Out(E) ;
else
std::cerr << E ;
}
return eError ;
}