[Issue#] N/A
[Problem] when the to-be-uninstalled app is running, the error is AlreadyUninstalled.
[Cause] No error for this kind
[Solution] Add an correct error definition.
[SCMRequest] N/A
Change-Id: Iec7194a84efe504c665a8b2fa4a998c32d3feae9
if (true == isRunning) {
LogError("Widget is not stopped. Cannot uninstall!");
- //TODO different error
- ThrowMsg(Exceptions::AlreadyUninstalling,
+ ThrowMsg(Exceptions::AppIsRunning,
"Widget is not stopped. Cannot uninstall!");
- //TODO or defer uninstall?
}
LogInfo("Widget Can be uninstalled. Pkgname : " << m_context.tzAppid);
DECLARE_JOB_EXCEPTION(Base, DatabaseFailure, ErrorWidgetUninstallationFailed)
DECLARE_JOB_EXCEPTION(Base, AlreadyUninstalling,
ErrorWidgetUninstallationFailed)
+DECLARE_JOB_EXCEPTION(Base, AppIsRunning, ErrorWidgetUninstallationFailed)
DECLARE_JOB_EXCEPTION(Base, WidgetNotExist, ErrorWidgetUninstallationFailed)
DECLARE_JOB_EXCEPTION(Base, UninstallOspSvcFailed,
ErrorWidgetUninstallationFailed)