Applied the error code added to ua-manager. accepted/tizen/unified/20190826.225910 submit/tizen/20190826.140219
authorsaerome.kim <saerome.kim@samsung.com>
Mon, 26 Aug 2019 12:00:57 +0000 (21:00 +0900)
committersaerome.kim <saerome.kim@samsung.com>
Mon, 26 Aug 2019 12:02:00 +0000 (21:02 +0900)
- ua-manager added UAM_ERROR_RESOURCE_BUSY.

Change-Id: I0498cffec7eafe00851828d8864a1132390d0200
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
src/user-awareness-util.c

index 4856746039e9c1d343c0e153d9d4daa69613d7be..abd95b42209403ff1c10fc8347c61b93f0754b20 100644 (file)
@@ -27,23 +27,23 @@ int _ua_get_error_code(int ua_error)
        switch (ua_error) {
        case UAM_ERROR_NONE:
                return UA_ERROR_NONE;
+       case UAM_ERROR_INVALID_PARAMETER:
+               return UA_ERROR_INVALID_PARAMETER;
        /* LCOV_EXCL_START */
+       case UAM_ERROR_RESOURCE_BUSY:
+               return UA_ERROR_RESOURCE_BUSY;
        case UAM_ERROR_PERMISSION_DENIED:
                return UA_ERROR_PERMISSION_DENIED;
        case UAM_ERROR_TIMED_OUT:
                return UA_ERROR_TIMED_OUT;
-       case UAM_ERROR_NOT_INITIALIZED:
-               return UA_ERROR_NOT_INITIALIZED;
+       case UAM_ERROR_NOW_IN_PROGRESS:
+               return UA_ERROR_NOW_IN_PROGRESS;
        case UAM_ERROR_NOT_SUPPORTED:
                return UA_ERROR_NOT_SUPPORTED;
+       case UAM_ERROR_NOT_INITIALIZED:
+               return UA_ERROR_NOT_INITIALIZED;
        case UAM_ERROR_NOT_IN_OPERATION:
                return UA_ERROR_NOT_IN_PROGRESS;
-       /* LCOV_EXCL_STOP */
-       case UAM_ERROR_INVALID_PARAMETER:
-               return UA_ERROR_INVALID_PARAMETER;
-       case UAM_ERROR_NOW_IN_PROGRESS:
-               return UA_ERROR_NOW_IN_PROGRESS;
-       /* LCOV_EXCL_START */
        case UAM_ERROR_ALREADY_DONE:
                return UA_ERROR_ALREADY_DONE;
        case UAM_ERROR_INTERNAL: