[Applications.Common] Fix exception messages (#978)
authorhjhun <36876573+hjhun@users.noreply.github.com>
Mon, 19 Aug 2019 23:38:37 +0000 (08:38 +0900)
committerpjh9216 <jh9216.park@samsung.com>
Mon, 19 Aug 2019 23:38:37 +0000 (08:38 +0900)
- Prints application ID and operation for debugging

Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/Tizen.Applications.Common/Tizen.Applications/AppControl.cs [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 3d05d1f..a85df42
@@ -588,7 +588,7 @@ namespace Tizen.Applications
                     case Interop.AppControl.ErrorCode.OutOfMemory:
                         throw new Exceptions.OutOfMemoryException("Out-of-memory");
                     case Interop.AppControl.ErrorCode.AppNotFound:
-                        throw new Exceptions.AppNotFoundException("App not found");
+                        throw new Exceptions.AppNotFoundException("App(" + launchRequest.ApplicationId + ") not found. Operation(" + launchRequest.Operation + ")");
                     case Interop.AppControl.ErrorCode.LaunchRejected:
                         throw new Exceptions.LaunchRejectedException("Launch rejected");
                     case Interop.AppControl.ErrorCode.LaunchFailed:
@@ -710,7 +710,7 @@ namespace Tizen.Applications
                     case Interop.AppControl.ErrorCode.InvalidParameter:
                         throw new ArgumentException("Invalid Arguments");
                     case Interop.AppControl.ErrorCode.AppNotFound:
-                        throw new Exceptions.AppNotFoundException("App not found");
+                        throw new Exceptions.AppNotFoundException("App(" + launchRequest.ApplicationId + ") not found. Operation(" + launchRequest.Operation + ")");
                     case Interop.AppControl.ErrorCode.LaunchRejected:
                         throw new Exceptions.LaunchRejectedException("Launch rejected");
                     case Interop.AppControl.ErrorCode.PermissionDenied: