Пример #1
0
void printRetCode( TA_RetCode retCode )
{
   TA_RetCodeInfo retCodeInfo;

   TA_SetRetCodeInfo( retCode, &retCodeInfo );
   printf( "\nFailed: ErrorCode %d=%s:[%s]\n", retCode,
           retCodeInfo.enumStr,
           retCodeInfo.infoStr );
}
Пример #2
0
void reportError( const char *str, TA_RetCode retCode )
{
   TA_RetCodeInfo retCodeInfo;

   TA_SetRetCodeInfo( retCode, &retCodeInfo );

   printf( "%s,%d==%s\n", str, retCode, retCodeInfo.enumStr );
   printf( "[%s]\n", retCodeInfo.infoStr );
}
Пример #3
0
static void print_error( TA_RetCode retCode )
{
   TA_RetCodeInfo retCodeInfo;

   /* Ask TA-LIB to provide an error string
    * and the enum that can be used to find
    * the origin of the failure within the
    * source code.
    */
   TA_SetRetCodeInfo( retCode, &retCodeInfo );
   printf( "\nWebFetch Fail: %d=%s:[%s]\n",
           retCode,
           retCodeInfo.enumStr,
           retCodeInfo.infoStr );
}
Пример #4
0
void TALIB::printError (QString es, TA_RetCode rc)
{
  TA_RetCodeInfo info;
  TA_SetRetCodeInfo(rc, &info);
  qDebug("%s:%d(%s): %s", es.latin1(), rc, info.enumStr, info.infoStr);
}