blob: 491c916d2d53ab796da619e9d6c1cdf9f57513af (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
|
/*
* email-service
*
* Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
*
* Contact: Kyuho Jo <kyuho.jo@samsung.com>, Sunghyun Kwon <sh0701.kwon@samsung.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
#ifndef __EMAIL_ERRORS_H__
#define __EMAIL_ERRORS_H__
/*****************************************************************************/
/* Errors */
/*****************************************************************************/
#define EMAIL_ERROR_NONE 1 /* There is no error */
#define EMAIL_ERROR_INVALID_PARAM -1001 /* invalid parameter was given. - Invalid input parameter */
#define EMAIL_ERROR_INVALID_ACCOUNT -1002 /* invalid account information was given. - Unsupported account */
#define EMAIL_ERROR_INVALID_USER -1003 /* invalid user ID was given. - Invalid user or password */
#define EMAIL_ERROR_INVALID_PASSWORD -1004 /* invalid password was given. - Invalid user or password */
#define EMAIL_ERROR_INVALID_SERVER -1005 /* invalid server information was given. - Server unavailable */
#define EMAIL_ERROR_INVALID_MAIL -1006 /* invalid mail information was given */
#define EMAIL_ERROR_INVALID_ADDRESS -1007 /* invalid address information was given. - Incorrect address */
#define EMAIL_ERROR_INVALID_ATTACHMENT -1008 /* invalid attachment information was given */
#define EMAIL_ERROR_INVALID_MAILBOX -1009 /* invalid mailbox information was given */
#define EMAIL_ERROR_INVALID_FILTER -1010 /* invalid filter information was given */
#define EMAIL_ERROR_INVALID_PATH -1011 /* invalid flle path was given */
#define EMAIL_ERROR_INVALID_DATA -1012 /* invalid data */
#define EMAIL_ERROR_INVALID_RESPONSE -1013 /* unexpected network response was given. - Invalid server response */
#define EMAIL_ERROR_ACCOUNT_NOT_FOUND -1014 /* no matched account was found */
#define EMAIL_ERROR_MAIL_NOT_FOUND -1015 /* no matched mail was found */
#define EMAIL_ERROR_MAILBOX_NOT_FOUND -1016 /* no matched mailbox was found */
#define EMAIL_ERROR_ATTACHMENT_NOT_FOUND -1017 /* no matched attachment was found */
#define EMAIL_ERROR_FILTER_NOT_FOUND -1018 /* no matched filter was found */
#define EMAIL_ERROR_CONTACT_NOT_FOUND -1019 /* no matched contact was found */
#define EMAIL_ERROR_FILE_NOT_FOUND -1020 /* no matched file was found */
#define EMAIL_ERROR_DATA_NOT_FOUND -1021 /* no matched data was found */
#define EMAIL_ERROR_NO_MORE_DATA -1022 /* No more data available */
#define EMAIL_ERROR_ALREADY_EXISTS -1023 /* data duplicated */
#define EMAIL_ERROR_MAX_EXCEEDED -1024 /* Can't handle more data */
#define EMAIL_ERROR_DATA_TOO_LONG -1025 /* Data is too long */
#define EMAIL_ERROR_DATA_TOO_SMALL -1026 /* Data is too small */
#define EMAIL_ERROR_NETWORK_TOO_BUSY -1027 /* Network is busy */
#define EMAIL_ERROR_OUT_OF_MEMORY -1028 /* There is not enough memory */
#define EMAIL_ERROR_DB_FAILURE -1029 /* database operation failed */
#define EMAIL_ERROR_PROFILE_FAILURE -1030 /* no proper profile was found */
#define EMAIL_ERROR_SOCKET_FAILURE -1031 /* socket operation failed */
#define EMAIL_ERROR_CONNECTION_FAILURE -1032 /* network connection failed */
#define EMAIL_ERROR_CONNECTION_BROKEN -1033 /* network connection was broken */
#define EMAIL_ERROR_DISCONNECTED -1034 /* connection was disconnected */
#define EMAIL_ERROR_LOGIN_FAILURE -1035 /* login failed */
#define EMAIL_ERROR_NO_RESPONSE -1036 /* There is no server response */
#define EMAIL_ERROR_MAILBOX_FAILURE -1037 /* The agent failed to scan mailboxes in server */
#define EMAIL_ERROR_AUTH_NOT_SUPPORTED -1038 /* The server doesn't support authentication */
#define EMAIL_ERROR_AUTHENTICATE -1039 /* The server failed to authenticate user */
#define EMAIL_ERROR_TLS_NOT_SUPPORTED -1040 /* The server doesn't support TLS */
#define EMAIL_ERROR_TLS_SSL_FAILURE -1041 /* The agent failed TLS/SSL */
#define EMAIL_ERROR_APPEND_FAILURE -1042 /* The agent failed to append mail to server */
#define EMAIL_ERROR_COMMAND_NOT_SUPPORTED -1043 /* The server doesn't support this command */
#define EMAIL_ERROR_ANNONYM_NOT_SUPPORTED -1044 /* The server doesn't support anonymous user */
#define EMAIL_ERROR_CERTIFICATE_FAILURE -1045 /* certificate failure - Invalid server certificate */
#define EMAIL_ERROR_CANCELLED -1046 /* The job was canceled by user */
#define EMAIL_ERROR_NOT_IMPLEMENTED -1047 /* The function was not implemented */
#define EMAIL_ERROR_NOT_SUPPORTED -1048 /* The function is not supported */
#define EMAIL_ERROR_MAIL_LOCKED -1049 /* The mail was locked */
#define EMAIL_ERROR_SYSTEM_FAILURE -1050 /* There is a system error */
#define EMAIL_ERROR_MAIL_MAX_COUNT -1052 /* The mailbox is full */
#define EMAIL_ERROR_ACCOUNT_MAX_COUNT -1053 /* There is too many account */
#define EMAIL_ERROR_MAIL_MEMORY_FULL -1054 /* There is no more storage */
#define EMAIL_ERROR_MAIL_NOT_FOUND_ON_SERVER -1055 /* The expected mail is not found in server */
#define EMAIL_ERROR_LOAD_ENGINE_FAILURE -1056 /* loading engine failed */
#define EMAIL_ERROR_CLOSE_FAILURE -1057 /* engine is still used */
#define EMAIL_ERROR_GCONF_FAILURE -1058 /* The error occurred on accessing Gconf */
#define EMAIL_ERROR_NO_SUCH_HOST -1059 /* no such host was found */
#define EMAIL_ERROR_EVENT_QUEUE_FULL -1060 /* event queue is full */
#define EMAIL_ERROR_EVENT_QUEUE_EMPTY -1061 /* event queue is empty */
#define EMAIL_ERROR_NO_RECIPIENT -1062 /* no recipients information was found */
#define EMAIL_ERROR_SMTP_SEND_FAILURE -1063 /* SMTP send failed */
#define EMAIL_ERROR_MAILBOX_OPEN_FAILURE -1064 /* accessing mailbox failed */
#define EMAIL_ERROR_RETRIEVE_HEADER_DATA_FAILURE -1065 /* retrieving header failed */
#define EMAIL_ERROR_XML_PARSER_FAILURE -1066 /* XML parsing failed */
#define EMAIL_ERROR_SESSION_NOT_FOUND -1067 /* no matched session was found */
#define EMAIL_ERROR_INVALID_STREAM -1068
#define EMAIL_ERROR_AUTH_REQUIRED -1069 /* SMTP Authentication needed */
#define EMAIL_ERROR_POP3_DELE_FAILURE -1100
#define EMAIL_ERROR_POP3_UIDL_FAILURE -1101
#define EMAIL_ERROR_POP3_LIST_FAILURE -1102
#define EMAIL_ERROR_IMAP4_STORE_FAILURE -1200
#define EMAIL_ERROR_IMAP4_EXPUNGE_FAILURE -1201
#define EMAIL_ERROR_IMAP4_FETCH_UID_FAILURE -1202
#define EMAIL_ERROR_IMAP4_FETCH_SIZE_FAILURE -1203
#define EMAIL_ERROR_IMAP4_IDLE_FAILURE -1204 /* IDLE faile */
#define EMAIL_ERROR_NO_SIM_INSERTED -1205
#define EMAIL_ERROR_FLIGHT_MODE -1206
#define EMAIL_ERROR_VALIDATE_ACCOUNT -1208
#define EMAIL_ERROR_NO_MMC_INSERTED -1209
#define EMAIL_ERROR_ACTIVE_SYNC_NOTI_FAILURE -1300
#define EMAIL_ERROR_HANDLE_NOT_FOUND -1301
#define EMAIL_ERROR_NULL_VALUE -1302
#define EMAIL_ERROR_FAILED_BY_SECURITY_POLICY -1303
#define EMAIL_ERROR_CANNOT_NEGOTIATE_TLS -1400 /* "Cannot negotiate TLS" */
#define EMAIL_ERROR_STARTLS -1401 /* "STARTLS" */
#define EMAIL_ERROR_IPC_CRASH -1500
#define EMAIL_ERROR_IPC_CONNECTION_FAILURE -1501
#define EMAIL_ERROR_IPC_SOCKET_FAILURE -1502
#define EMAIL_ERROR_IPC_PROTOCOL_FAILURE -1503
#define EMAIL_ERROR_IPC_ALREADY_INITIALIZED -1504
#define EMAIL_ERROR_LOGIN_ALLOWED_EVERY_15_MINS -1600 /* "login allowed only every 15 minutes" */
#define EMAIL_ERROR_TOO_MANY_LOGIN_FAILURE -1601 /* "Too many login failure" */
#define EMAIL_ERROR_ON_PARSING -1700
#define EMAIL_ERROR_NETWORK_NOT_AVAILABLE -1800 /* WIFI not availble*/
#define EMAIL_ERROR_CANNOT_STOP_THREAD -2000
#define EMAIL_ERROR_SECURED_STORAGE_FAILURE -2100 /* Error from secured storage */
#define EMAIL_ERROR_UNKNOWN -8000 /* unknown error */
#endif /* __EMAIL_ERRORS_H__ */
|