npruntime plugins copy task was cleaned up.
[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 namespace Jobs {
36 namespace Exceptions {
37 enum Type
38 {
39     Success = 0,                         ///< Success
40
41     /* pkgmgr error */
42     ErrorPackageNotFound,                       ///<
43     ErrorPackageInvalid,                        ///< invalid widget package
44     ErrorPackageLowerVersion,                   ///< given version is lower
45                                                 ///< than existing version
46     ErrorManifestNotFound,                      ///<
47     ErrorManifestInvalid,                       ///<
48     ErrorConfigNotFound,                        ///< couldn't find config.xml
49                                                 ///< in package.
50     ErrorConfigInvalid,                         ///< invalid config.xml
51     ErrorSignatureNotFound,                     ///< signature file not exist.
52     ErrorSignatureInvalid,                      ///< invalid signature file
53     ErrorSignatureVerificationFailed,           ///< failure in verificate
54                                                 ///< signature
55     ErrorRootCertificateNotFound,               ///< couldn't find root
56                                                 ///< certificate.
57     ErrorCertificationInvaid,                   ///< invalid certification
58     ErrorCertificateChainVerificationFailed,    ///< failure in verificate
59                                                 ///< certification chain.
60     ErrorCertificateExpired,                    ///< expire cerification.
61     ErrorInvalidPrivilege,                      ///< invalid privilege.
62     ErrorMenuIconNotFound,                      ///<
63     ErrorFatalError,                            ///< failure in db operation
64                                                 ///< or file opertion..
65     ErrorOutOfStorage,                          ///< failure in shortage of
66                                                 ///< memory
67     ErrorOutOfMemory,                           ///< failure in shortage of RAM
68
69     /* wrt-installer error */
70     /* 121-140 : reserved for Web installer */
71     ErrorPackageAlreadyInstalled = 121,     ///< package already in target.
72     ErrorAceCheckFailed,                    ///< failure in ace check.
73     ErrorManifestCreateFailed,              ///< failure in creating manifest
74     ErrorEncryptionFailed,                  ///< failure in encryption resource
75     ErrorInstallOspServcie,                 ///< Failure in installing osp service
76     ErrorPluginInstallationFailed,          ///< failure in plugin installation
77     ErrorWidgetUninstallationFailed,        ///< failure in uninstallation
78
79     ErrorUnknown = 140,                     ///< do not use this error code.
80 };
81 }
82 }
83
84 #endif /* JOB_EXCEPTION_ERROR_H */