|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef PUSHERRORCODES_H |
|
19 #define PUSHERRORCODES_H |
|
20 |
|
21 namespace java |
|
22 { |
|
23 namespace push |
|
24 { |
|
25 |
|
26 //Can be set to the error status in the successful case. |
|
27 const int NO_ERROR = 0; |
|
28 |
|
29 //Unknown error. This should never throw to the user. |
|
30 const int UNKNOWN_ERROR = -11000; |
|
31 |
|
32 //This is used if reading/writing to the comms message fails. |
|
33 const int INCORRECT_COMMS_MSG = -11001; |
|
34 |
|
35 //This is used in the following situations: |
|
36 //- initialization of comms failed. |
|
37 //- sending a comms msg fails. |
|
38 //- unexpected comms msg arrived. |
|
39 const int GENERAL_COMMS_ERROR = -11002; |
|
40 |
|
41 //ServerConnection object by URI is not found. |
|
42 const int SRV_CONN_NOT_FOUND = -11010; |
|
43 |
|
44 //Push URI does not belong to this MIDlet. |
|
45 const int URI_BELONGS_TO_OTHER_MIDLET = -11011; |
|
46 |
|
47 //URI is static push URI. |
|
48 const int NOT_DYNAMIC_PUSH_URI = -11012; |
|
49 |
|
50 //Invalid push URI. |
|
51 const int INVALID_URI = -11020; |
|
52 |
|
53 //Invalid filter argument. |
|
54 const int INVALID_FILTER = -11021; |
|
55 |
|
56 //Invalid alarm time. |
|
57 const int INVALID_ALARM_TIME = -11022; |
|
58 |
|
59 //Initialization of the alarm timer failed. |
|
60 const int INIT_OF_ALARM_TIMER_FAILED = -11023; |
|
61 |
|
62 //Connection already exists. |
|
63 const int PUSH_CONNECTION_ALREADY_EXISTS = -11030; |
|
64 |
|
65 //Inserting/updating/deleting data from the db failed. |
|
66 const int DB_ERROR = -11040; |
|
67 |
|
68 //Inserting/updating/deleting data from the db failed. |
|
69 const int CONVERTING_DB_VALUE_FAILED = -11041; |
|
70 |
|
71 //This error code is used for protocol specific errors occurred in the Server Connection Plugin. |
|
72 const int COMMON_SRV_CONN_PLUGIN_ERROR = -11050; |
|
73 |
|
74 //This error is used if initialization of all push connections failed in the listen mode. |
|
75 const int INIT_OF_ALL_PUSH_CONNS_FAILED = -11051; |
|
76 |
|
77 //Identifier data does not match to any application. |
|
78 const int INCORRECT_APP_DATA = -11052; |
|
79 |
|
80 }//end namespace push |
|
81 }//end namespace java |
|
82 |
|
83 #endif // PUSHERRORCODES_H |