Report the error for the supplied error code that is assumed to occur within the named function. Then provide a stack trace for the calling thread and terminate execution of the program. Returns: None

Return TypeFunction nameArguments
voidhzexit(hzEcode,const char*,)

Declared in file: hzProcess.h
Defined in file : hzError.cpp

Function Logic:

0:START 1:unknown 2: No text 3:phz 4:unknown 5:items items 6:_hzGlobal_kill items items fmt items items items pLog 7:unknown 8:items 9:unknown 10:items 11:items 12:items items 13: No text

Function body:

void hzexit (hzEcode eError)const char* va_alist, 
{
   //  Report the error for the supplied error code that is assumed to occur within the named function. Then provide a stack trace for the calling thread and terminate execution
   //  of the program.
   //  
   //  Arguments: 1) eError  Error code
   //     2) va_alist Error description
   //  
   //  Returns: None
   va_list     ap1 ;       //  Variable argument list
   hzChain     E ;         //  Error chain
   hzLogger*   pLog ;      //  Output logfile
    hzProcess*  phz ;      //  Process controller
   const char* fmt ;       //  Format control string
   if (_hzGlobal_kill)
       return ;
    phz = GetThreadInfo() ;
   if (!phz)
   {
       printf("No process - hzexit called\n") ;
       exit(eError.Value()) ;
   }
   _hzGlobal_kill = true ;
   _makeErrmsg(E, HZ_FATAL, eError) ;
   va_start(ap1, va_alist) ;
   fmt = va_alist ;
   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 ;
   }
   phz->StackTrace() ;
   exit(eError.Value()) ;
}