void printRetCode( TA_RetCode retCode ) { TA_RetCodeInfo retCodeInfo; TA_SetRetCodeInfo( retCode, &retCodeInfo ); printf( "\nFailed: ErrorCode %d=%s:[%s]\n", retCode, retCodeInfo.enumStr, retCodeInfo.infoStr ); }
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 ); }
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 ); }
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); }