|
1 /* |
|
2 * Copyright (c) 2000-2006 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 /** |
|
19 * @file |
|
20 * This file specifies any error codes specific to Java MIDP installation |
|
21 * |
|
22 * @internalTechnology |
|
23 */ |
|
24 #ifndef JAVAERROR_H |
|
25 #define JAVAERROR_H |
|
26 |
|
27 ////////////////////////////////////////////////////////////////////////////// |
|
28 // Errors produced by JavaReader |
|
29 ////////////////////////////////////////////////////////////////////////////// |
|
30 |
|
31 /** The manifest is invalid */ |
|
32 const TInt KJavaErrInvalidManifest=-10000; |
|
33 /** A line in the manifest exceeds 72 characters */ |
|
34 const TInt KJavaErrLineTooLong=-10001; |
|
35 /** The manifest file is missing or blank */ |
|
36 const TInt KJavaErrMissingManifest=-10002; |
|
37 /** One of the valus in the manifest is not a UTF8 value */ |
|
38 const TInt KJavaErrNoneUTF8=-10003; |
|
39 /** The MIDlet-Name attribute is missing from manifest */ |
|
40 const TInt KJavaErrMissingName=-10004; |
|
41 /** The MIDlet-Vendor attribute is missing from manifest */ |
|
42 const TInt KJavaErrMissingVendor=-10005; |
|
43 /** The MIDlet-Version attribute is missing from manifest */ |
|
44 const TInt KJavaErrMissingVersion=-10006; |
|
45 /** The MIDlet-Version attribute is invalid should be #.#[.#] where # is 0..99 */ |
|
46 const TInt KJavaErrInvalidVersion=-10007; |
|
47 /** The MicroEditionProfile attribute is missing from manifest */ |
|
48 const TInt KJavaErrMissingMicroEditionProfile=-10008; |
|
49 /** The MicroEditionConfiguration attribute is missing from manifest */ |
|
50 const TInt KJavaErrMissingMicroEditionConfiguration=-10009; |
|
51 /** The MIDlet-Jar-Size attribute is missing */ |
|
52 const TInt KJavaErrMissingJarSize=-10010; |
|
53 /** The MIDlet-Jar-Size attribute is invalid */ |
|
54 const TInt KJavaErrInvalidJarSize=-10011; |
|
55 /** The MIDlet-Jar-URL attribute is missing */ |
|
56 const TInt KJavaErrMissingJarURL=-10012; |
|
57 /** The MIDlet-Data-Size attribute is invalid */ |
|
58 const TInt KJavaErrInvalidDataSize=-10013; |
|
59 /** The jad is invalid */ |
|
60 const TInt KJavaErrInvalidJad=-10014; |
|
61 /** The size of the jar is not what is announced in the jad */ |
|
62 const TInt KJavaErrJarSizeMismatch=-10015; |
|
63 /** There is a mismatch between the value of an attribute in the jad and the jar */ |
|
64 const TInt KJavaErrAttributeMismatch=-10016; |
|
65 /** The number of MIDlets in the suite exceeds the system maximum */ |
|
66 const TInt KJavaErrTooManyMIDlets=-10017; |
|
67 /** The name of MIDlet-<n> attribute is missing */ |
|
68 const TInt KJavaErrMidletNameMissing=-10018; |
|
69 /** The class name of MIDlet-<n> attribute is missing */ |
|
70 const TInt KJavaErrMidletClassNameMissing=-10019; |
|
71 |
|
72 ////////////////////////////////////////////////////////////////////////////// |
|
73 // Errors produced by JavaReader (JAD/JAR Manifest parse errors) |
|
74 ////////////////////////////////////////////////////////////////////////////// |
|
75 /// Successful parse with no error is KErrNone |
|
76 /** Internal error in parser */ |
|
77 const TInt KJavaParseJarMetaFileParserError = -10700; |
|
78 /** Manifest-Version attribute missing */ |
|
79 const TInt KJavaParseVersionMissing = -10701; |
|
80 /** @deprecated */ |
|
81 const TInt KJavaParseVersionMismatch = -10702; |
|
82 /** Lines in JAD / JAR > 72 characters are accepted, so this error is not generated */ |
|
83 const TInt KJavaParseLineTooLong = -10703; |
|
84 /** The name of an attribute exceeds maximum */ |
|
85 const TInt KJavaParseNameTooLong = -10704; |
|
86 /** Invalid character in file */ |
|
87 const TInt KJavaParseInvalidCharacter = -10705; |
|
88 /** Unexpected blank line. */ |
|
89 const TInt KJavaParseUnexpectedBlankLine = -10706; |
|
90 /** Unexpected continuation of a line. */ |
|
91 const TInt KJavaParseUnexpectedContinuationLine = -10707; |
|
92 /** Badly formed attribute e.g. no value, colon etc. */ |
|
93 const TInt KJavaParseMalformedHeader = -10708; |
|
94 /** Name of attrubute does not conform to standard */ |
|
95 const TInt KJavaParseInvalidAttributeName = -10709; |
|
96 /** Attribute Name: found in manifest manin section */ |
|
97 const TInt KJavaParseUnexpectedNameAttribute = -10710; |
|
98 /** Attribute Name: not present in individual section */ |
|
99 const TInt KJavaParseNameAttributeMissing = -10711; |
|
100 /** File has been parsed (not an error). */ |
|
101 const TInt KJavaParseEndOfFileReached = -10712; |
|
102 /** MIDlet-Install-Notify attribute value exceeds maximum length */ |
|
103 const TInt KJavaParseNotifyUrlTooLong = -10713; |
|
104 /** MIDlet-Delete-Confirm attribute value exceeds maximum length */ |
|
105 const TInt KJavaParseDeleteUrlTooLong = -10714; |
|
106 /** JAD or JAR have not yet been parsed. */ |
|
107 const TInt KJavaParseErrNotParsed = -10715; |
|
108 |
|
109 ////////////////////////////////////////////////////////////////////////////// |
|
110 // Errors produced by JavaInstaller |
|
111 ////////////////////////////////////////////////////////////////////////////// |
|
112 |
|
113 /** Upgrade from signed to unsigned not allowed */ |
|
114 const TInt KJavaInstUnsignedReplacesSigned = -10500; |
|
115 /** Cannot upgrade since midlet is running */ |
|
116 const TInt KJavaInstMIDletRunning = -10501; |
|
117 /** Error downloading Jar */ |
|
118 const TInt KJavaInstJarDownloadError = -10502; |
|
119 /** Error converting icons */ |
|
120 const TInt KJavaInstIconConversionError = -10503; |
|
121 /** JAD file is invalid */ |
|
122 const TInt KJavaInstInvalidJad = -10504; |
|
123 /** JAR file is invalid */ |
|
124 const TInt KJavaInstInvalidJar = -10505; |
|
125 /** Insufficient space to install on device */ |
|
126 const TInt KJavaInstInsufficientSpace = -10506; |
|
127 /** JAR download location is invalid */ |
|
128 const TInt KJavaInstBadDownloadLocation = -10507; |
|
129 /** Java version required by MIDlet not available on device */ |
|
130 const TInt KJavaInstIncompatibleJavaVersion = -10508; |
|
131 /** Could not authenticate with AMS server */ |
|
132 const TInt KJavaInstAMSAuthenticationFailure = -10509; |
|
133 /** JAD has a signature but no certificate */ |
|
134 const TInt KJavaInstSignatureWithoutCertificate = -10510; |
|
135 /** Error decoding base64 certificate/signature data */ |
|
136 const TInt KJavaInstBadBase64 = -10511; |
|
137 /** error code to indicate that abort is expected and no need to display another dialog */ |
|
138 const TInt KJavaInstNormalAbort = -10512; |
|
139 /** error code to indicate that user abort occurred during version check */ |
|
140 const TInt KJavaInstVersionCheckAbort = -10513; |
|
141 /** error code to indicate loss of service during http transaction */ |
|
142 const TInt KJavaInstLossOfService = -10514; |
|
143 /** error code to indicate that we are awaiting rights for a jar file separate delivery case */ |
|
144 const TInt KJavaInstWaitingForDRMRights = -10515; |
|
145 /** error code to indicate non-acceptable content in DRM download case*/ |
|
146 const TInt KJavaInstNonAcceptableContent = -10516; |
|
147 /** error code to indicate uninstallation is not allowed*/ |
|
148 const TInt KJavaInstUnInstNotAllowed = -10517; |
|
149 |
|
150 |
|
151 #endif // JAVAERROR_H |
|
152 |