[Release] wrt-installer_0.1.23
[framework/web/wrt-installer.git] / src / jobs / widget_install / task_ace_check.cpp
index 2697a9c..c8fdbe6 100644 (file)
@@ -81,7 +81,7 @@ void TaskAceCheck::StepAceCheck()
             dao.getHandle(),
             &policyResult);
     if (ACE_OK != ret) {
-        ThrowMsg(Exceptions::NotAllowed, "Instalation failure. "
+        ThrowMsg(Exceptions::AceCheckFailed, "Instalation failure. "
                                          "ACE check failure");
     }
 
@@ -133,7 +133,7 @@ void TaskAceCheck::StepProcessAceResponse()
         ace_return_t ret = ace_set_requested_dev_caps(dao.getHandle(),
                                                       &list);
         if (ACE_OK != ret) {
-            ThrowMsg(Exceptions::NotAllowed, "Instalation failure. "
+            ThrowMsg(Exceptions::AceCheckFailed, "Instalation failure. "
                                              "ACE failure");
         }
         delete[] list.items;
@@ -165,7 +165,7 @@ void TaskAceCheck::StepProcessAceResponse()
 
         if (ACE_OK != ret) {
             LogError("Error in ace_set_feature");
-            ThrowMsg(Exceptions::NotAllowed, "Instalation failure. "
+            ThrowMsg(Exceptions::AceCheckFailed, "Instalation failure. "
                                              "ace_set_feature failure.");
         }
         return;
@@ -182,7 +182,7 @@ void TaskAceCheck::StepCheckAceResponse()
     if (m_context.featureLogic->isRejected()) {
         LogError("Installation failure. Some devCap was not accepted by ACE.");
         ThrowMsg(
-            Exceptions::NotAllowed,
+            Exceptions::AceCheckFailed,
             "Instalation failure. "
             "Some deviceCap was not accepted by ACE.");
     }