void HandleFailCallback(RESTConnector.Error error, Dictionary <string, object> customData)
        {
            Debug.LogError(error);

            succeeded = false;
            isDone    = true;
        }
Ejemplo n.º 2
0
 private void OnCreateTokenizationDictionaryFail(RESTConnector.Error error, Dictionary <string, object> customData)
 {
     Log.Error("TestDiscovery.OnCreateTokenizationDictionaryFail()", "Error received - Continuing without testing tokenization dictionaries: {0}", error.ToString());
     _createTokenizationDictTested    = true;
     _getTokenizationDictStatusTested = true;
     _deleteTokenizationDictTested    = true;
 }
        private void OnFail(RESTConnector.Error error, Dictionary <string, object> customData)
        {
            Log.Debug("ExampleAssistant.OnFail()", "Response: {0}", customData["json"].ToString());
            Log.Error("AssistantHandler.OnFail()", "Error received: {0}", error.ToString());
            OnAssistantErrorEventArgs args = new OnAssistantErrorEventArgs();

            args.Input = lastInput;
            args.Error = error.ToString();

            AssistantFailed(this, args);
        }
 private void OnFail(RESTConnector.Error error, Dictionary <string, object> customData)
 {
     if (customData["json"] != null)
     {
         Log.Debug("ExampleAssistant.OnFail()", "Response: {0}", customData["json"].ToString());
     }
     if (error != null)
     {
         Log.Error("TestAssistant.OnFail()", "Error received: {0}", error.ToString());
     }
 }
Ejemplo n.º 5
0
        void HandleFailCallback(RESTConnector.Error error, Dictionary <string, object> customData)
        {
            Debug.Log(error);

            if (error.ErrorCode == 409)
            {
                Debug.Log("Retrying in 5 seconds");
                retry      = true;
                retryDelay = 5.0f;
            }

            succeeded = false;
            isDone    = true;
        }
Ejemplo n.º 6
0
        void HandleFailCallback(RESTConnector.Error error, Dictionary <string, object> customData)
        {
            if (error == null)
            {
                // Probably succeeded, but getting wrong code from server.
                // TODO: Follow up with Watson SDK.
                succeeded = true;
            }
            else
            {
                Debug.LogError(error);
                succeeded = false;
            }

            isDone = true;
        }
    private void OnFail(RESTConnector.Error error, Dictionary <string, object> customData)
    {
        if (saveAnalyzeOn)
        {
            // save the result
            StreamWriter writer = new StreamWriter("Assets\\0_SOUNDDB\\E0\\" + saveNames[saveIndex] + ".txt", false);
            writer.WriteLine(
                0f + " "
                + 0f + " "
                + 0f + " "
                + 0f + " "
                + 0f + " "
                + 0f
                );
            writer.Close();

            saveIndex++;
        }
        else
        {
            currentAvatarToEmote.e_angry   = 0f;
            currentAvatarToEmote.e_disgust = 0f;
            currentAvatarToEmote.e_sad     = 0f;
            currentAvatarToEmote.e_happy   = 0f;
            currentAvatarToEmote.e_fear    = 0f;
            currentAvatarToEmote.e_shock   = 0f;
        }

        if (saveAnalyzeOn)
        {
            if (saveIndex < saveNames.Length)
            {
                SaveNextOne();
            }
        }
    }
Ejemplo n.º 8
0
 private void OnFail(RESTConnector.Error error, Dictionary <string, object> customData)
 {
     Log.Error("TestDoucmentConversion.OnFail()", "Error received: {0}", error.ToString());
 }
Ejemplo n.º 9
0
 private void OnGetTokenFail(RESTConnector.Error error, Dictionary <string, object> customData)
 {
     Log.Debug("Credentials.OnGetTokenFail();", "Failed to get IAM Token: {0}", error.ToString());
 }
Ejemplo n.º 10
0
 // Generic Failure for Watson Assistant Service
 private void OnFail(RESTConnector.Error error, Dictionary <string, object> customData)
 {
     print("ERROR " + error.ToString());
     Log.Debug("ExampleAssistant.OnFail()", "Response: {0}", error.ToString());
     Log.Error("TestAssistant.OnFail()", "Error received: {0}", error.ToString());
 }
 private void OnFail(RESTConnector.Error error, Dictionary <string, object> customData)
 {
     Log.Debug("ExampleCustomHeader.OnFail()", "Response: {0}", customData["json"].ToString());
     Log.Error("ExampleCustomHeader.OnFail()", "Error received: {0}", error.ToString());
 }
Ejemplo n.º 12
0
 private void OnFail(RESTConnector.Error error, Dictionary <string, object> customData)
 {
     Log.Error("ExamplePersonaltyInsights.OnFail()", "Error received: {0}", error.ToString());
 }
Ejemplo n.º 13
0
 private void OnFail(RESTConnector.Error error, Dictionary <string, object> customData)
 {
     Debug.Log("IBM Watson api call failed");
     Debug.Log(error.ErrorMessage);
 }
Ejemplo n.º 14
0
 private void OnFailCheckingIfClassifierIsReady(RESTConnector.Error error, Dictionary <string, object> customData)
 {
     IsClassifierReady(_classifierToDelete);
 }
Ejemplo n.º 15
0
 private void OnFail(RESTConnector.Error error, Dictionary <string, object> customData)
 {
     Debug.LogError("ExampleVisualRecognition.OnFail(): Error received: " + error.ToString());
 }
 private void OnFail(RESTConnector.Error error, Dictionary<string, object> customData)
 {
     Log.Debug("ExampleAssistantV2.OnFail()", "Call failed: {0}: {1}", error.ErrorCode, error.ErrorMessage);
 }
 private void OnFail(RESTConnector.Error error, Dictionary <string, object> customData)
 {
     Log.Debug("LanguageTranslatorDemo.OnFail()", "Error: {0}", error.ToString());
 }
 private void OnFail(RESTConnector.Error error, Dictionary <string, object> customData)
 {
     Log.Error("TestNaturalLanguageUnderstanding.OnFail()", "Error received: {0}", error.ToString());
 }
Ejemplo n.º 19
0
 private void OnFail(RESTConnector.Error error, Dictionary <string, object> customData)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 20
0
 private void OnFail(RESTConnector.Error error, Dictionary <string, object> customData)
 {
     Log.Debug("TestCompareComplyV1.OnFail()", "Failed: {0}", error.ErrorMessage);
 }
Ejemplo n.º 21
0
 private void TtsOnError(RESTConnector.Error error, Dictionary <string, object> customData)
 {
     Debug.LogErrorFormat("TextToSpeech Error. {0}", error.ToString());
 }
 void HandleFailCallback(RESTConnector.Error error, Dictionary <string, object> customData)
 {
     Debug.LogError(error);
 }
Ejemplo n.º 23
0
 private void OnFail(RESTConnector.Error error, Dictionary <string, object> customData)
 {
     Log.Error("TestLanguageTranslator.OnFail()", "Error received: {0}", error.ToString());
 }
 private void OnFail(RESTConnector.Error error, Dictionary <string, object> customData)
 {
     Log.Error("TestTradeoffAnalytics.OnFail()", "Error received: {0}", error.ToString());
 }
 private void OnFail(RESTConnector.Error error, Dictionary <string, object> customData)
 {
     Log.Error("ExampleSpeechToText.OnFail()", "Error received: {0}", error.ToString());
 }
Ejemplo n.º 26
0
 private void OnCONVFail(RESTConnector.Error error, Dictionary <string, object> customData)
 {
     Log.Error("ExampleConversation.OnFail()", "Error received: {0}", error.ToString());
     _messageTested = false;
 }
Ejemplo n.º 27
0
 private void OnFail(RESTConnector.Error error, Dictionary <string, object> customData)
 {
     Log.Error("ExampleNaturalLanguageClassifier.OnFail()", "Error received: {0}", error.ToString());
 }
Ejemplo n.º 28
0
 private void OnTTSFail(RESTConnector.Error error, Dictionary <string, object> customData)
 {
     Log.Error("WatsonTTS.OnFail()", "Error received: {0}", error.ToString());
 }
Ejemplo n.º 29
0
 private void OnFail(RESTConnector.Error error, Dictionary <string, object> customData)
 {
     Log.Error("TestVisualRecognition.OnFail()", "Error received: {0}", error.ToString());
 }
Ejemplo n.º 30
0
 //  OnMessageFail callback
 private void OnMessageFail(RESTConnector.Error error, Dictionary <string, object> customData)
 {
     Log.Error("ExampleCallback.OnMessageFail()", "Error received: {0}", error.ToString());
 }