Tizen 2.4.0 rev3 SDK Public Release
[framework/web/wrt-installer.git] / src / jobs / job_exception_error.h
1 /*
2  * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  *    Licensed under the Apache License, Version 2.0 (the "License");
5  *    you may not use this file except in compliance with the License.
6  *    You may obtain a copy of the License at
7  *
8  *        http://www.apache.org/licenses/LICENSE-2.0
9  *
10  *    Unless required by applicable law or agreed to in writing, software
11  *    distributed under the License is distributed on an "AS IS" BASIS,
12  *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  *    See the License for the specific language governing permissions and
14  *    limitations under the License.
15  */
16 /**
17  * @file        job_exception_error.h
18  * @author      Soyoung Kim (sy037.kim@samsung.com)
19  * @version     1.0
20  * @brief       This file contains declarations of wrt api
21  */
22
23 /*
24  * @defgroup wrt_engine_group WebRunTime engine Library
25  * @ingroup internet_FW
26  * Functions to APIs to access wrt-engine
27  */
28
29 #ifndef JOB_EXCEPTION_ERROR_H
30 #define JOB_EXCEPTION_ERROR_H
31
32 #include <stdbool.h>
33 #include <stddef.h>
34
35 #include <dpl/platform.h>
36
37 namespace Jobs {
38 namespace Exceptions {
39 enum Type
40 {
41     Success = 0,                         ///< Success
42
43     /* pkgmgr error */
44     ErrorPackageNotFound,                       ///<
45     ErrorPackageInvalid,                        ///< invalid widget package
46     ErrorPackageLowerVersion,                   ///< given version is lower
47     ErrorPackageExecutableNotFound,
48
49     ErrorManifestNotFound = 11,                 ///<
50     ErrorManifestInvalid,                       ///<
51     ErrorConfigNotFound,                        ///< couldn't find config.xml
52     ErrorConfigInvalid,                         ///< invalid config.xml
53
54     ErrorSignatureNotFound = 21,                ///< signature file not exist.
55     ErrorSignatureInvalid,                      ///< invalid signature file
56     ErrorSignatureVerificationFailed,           ///< failure in signature verification
57
58     ErrorRootCertificateNotFound = 31,          ///< couldn't find root
59     ErrorCertificationInvaid,                   ///< invalid certification
60     ErrorCertificateChainVerificationFailed,    ///< failure in verificate
61     ErrorCertificateExpired,                    ///< expire cerification.
62
63     ErrorInvalidPrivilege = 41,                 ///< invalid privilege.
64     ErrorPrivilegeLevelViolation,
65
66     ErrorInstallPrivilegeUsingLegacyFailed = 43,
67     ErrorInstallPrivilegeUnknownFailed = 44,
68     ErrorInstallPrivilegeUnauthorizedFailed = 45,
69
70     ErrorMenuIconNotFound = 51,                 ///<
71
72     ErrorFatalError = 61,                       ///< failure in db operation
73     ErrorOutOfStorage,                          ///< failure in shortage of memory
74     ErrorOutOfMemory,                           ///< failure in shortage of RAM
75     ErrorArgumentInvalid,
76
77     /* wrt-installer error */
78     /* 121-140 : reserved for Web installer */
79     ErrorPackageAlreadyInstalled = 121,     ///< package already in target.
80     ErrorAceCheckFailed,                    ///< failure in ace check.
81     ErrorManifestCreateFailed,              ///< failure in creating manifest
82     ErrorEncryptionFailed,                  ///< failure in encryption resource
83     ErrorInstallOspServcie,                 ///< Failure in installing osp service
84     ErrorPluginInstallationFailed,          ///< failure in plugin installation
85     ErrorWidgetUninstallationFailed,        ///< failure in uninstallation
86     ErrorNotSupportRDSUpdate,               ///< failure in rds update
87 #if ENABLE(PRE_LAUNCH)
88     ErrorPreLaunchingRegistrationFailed,    ///< failure in registration of prelaunching flag
89 #endif
90
91     ErrorUnknown = 140,                     ///< do not use this error code.
92 };
93 }
94 }
95
96 #endif /* JOB_EXCEPTION_ERROR_H */