[Widgetservice] NotFoundError separated from AbortError. 17/81417/1
authorTomasz Marciniak <t.marciniak@samsung.com>
Tue, 26 Jul 2016 06:08:36 +0000 (08:08 +0200)
committerTomasz Marciniak <t.marciniak@samsung.com>
Tue, 26 Jul 2016 06:08:36 +0000 (08:08 +0200)
[Verification] Code compiles.

Change-Id: I291ad7deb001fe32284cff520a82746e673ea563
Signed-off-by: Tomasz Marciniak <t.marciniak@samsung.com>
src/widgetservice/widgetservice_utils.cc

index 7ba52e0a41e06693ad68fc44e07df91c16f743fe..142cbbb3a58dc6d99aeadcf48855929ed0e042e7 100644 (file)
@@ -84,12 +84,13 @@ TizenResult WidgetServiceUtils::ConvertErrorCode(int error) {
       return common::NotSupportedError(error);
     case WIDGET_ERROR_CANCELED:
       return common::OperationCanceledError(error);
+    case WIDGET_ERROR_NOT_EXIST:
+      return common::NotFoundError(error);
     case WIDGET_ERROR_OUT_OF_MEMORY:
     case WIDGET_ERROR_FILE_NO_SPACE_ON_DEVICE:
     case WIDGET_ERROR_FAULT:
     case WIDGET_ERROR_ALREADY_EXIST:
     case WIDGET_ERROR_ALREADY_STARTED:
-    case WIDGET_ERROR_NOT_EXIST:
     default:
       return common::AbortError(error);
   }