From: hjhun <36876573+hjhun@users.noreply.github.com> Date: Mon, 19 Aug 2019 23:38:37 +0000 (+0900) Subject: [Applications.Common] Fix exception messages (#978) X-Git-Tag: submit/tizen/20190821.005159~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0982b2584b6a4e9ab1447a4d96faf86330ccb5c0;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [Applications.Common] Fix exception messages (#978) - Prints application ID and operation for debugging Signed-off-by: Hwankyu Jhun --- 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 3d05d1f15..a85df42a7 --- 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: