From 0982b2584b6a4e9ab1447a4d96faf86330ccb5c0 Mon Sep 17 00:00:00 2001 From: hjhun <36876573+hjhun@users.noreply.github.com> Date: Tue, 20 Aug 2019 08:38:37 +0900 Subject: [PATCH] [Applications.Common] Fix exception messages (#978) - Prints application ID and operation for debugging Signed-off-by: Hwankyu Jhun --- src/Tizen.Applications.Common/Tizen.Applications/AppControl.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 src/Tizen.Applications.Common/Tizen.Applications/AppControl.cs diff --git a/src/Tizen.Applications.Common/Tizen.Applications/AppControl.cs b/src/Tizen.Applications.Common/Tizen.Applications/AppControl.cs old mode 100644 new mode 100755 index 3d05d1f..a85df42 --- a/src/Tizen.Applications.Common/Tizen.Applications/AppControl.cs +++ b/src/Tizen.Applications.Common/Tizen.Applications/AppControl.cs @@ -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: -- 2.7.4