Installer errors handling clean up
authorTomasz Iwanek <t.iwanek@samsung.com>
Tue, 12 Feb 2013 15:27:45 +0000 (16:27 +0100)
committerTomasz Iwanek <t.iwanek@samsung.com>
Thu, 28 Feb 2013 14:01:34 +0000 (15:01 +0100)
commit994333f9e419ce00f7b87052c1486468f17c2dbd
tree0a1dc4568157aae3478eb0a5650fe243f44155c2
parent12fff9b38f15bec5041df19a9041f45466e21f6f
Installer errors handling clean up

[Issue#]       LINUXWRT-100
[Bug]          Unused error code, too much code error enums in overall
[Cause]        Development
[Solution]     Error handling will be clean up.

Error handling of installer after modifications will look in following way:
-    each job declares it's on exceptions (DECLARE_JOB_EXCEPTION) that can be used in it's tasks (jobs/(job)/(job)_errors.h),
-    each exception have associated enum Exceptions::Type value (many exceptions can have same value),
-    Exceptions::Type enum value is translated into (general for installer) WrtErrStatus error code (wrt_type.h),
-    WrtErrStatus is used into installation callbacks and decides about information for user,

Any other error handling (in installer code) should be removed after all.

[Verification] Build repository

Change-Id: Id0b94f3c1f98f30e8dbbc80f2046a83272cb2d43
src/jobs/plugin_install/plugin_installer_errors.h
src/jobs/widget_install/task_certify.cpp
src/jobs/widget_install/task_widget_config.cpp
src/jobs/widget_install/task_widget_config.h
src/jobs/widget_install/widget_install_errors.h
src/wrt-installer/installer_callbacks_translate.cpp
src/wrt-installer/installer_callbacks_translate.h
src/wrt-installer/wrt_installer.cpp
src/wrt-installer/wrt_type.h