Offload int[] to byte[].
[SquirrelJME.git] / modules / meep-swm / src / main / java / javax / microedition / swm / InstallErrorCodes.java
blob9fb37304dabc30f379270858a457035ee61c1927
1 // -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
2 // ---------------------------------------------------------------------------
3 // SquirrelJME
4 // Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
5 // ---------------------------------------------------------------------------
6 // SquirrelJME is under the Mozilla Public License Version 2.0.
7 // See license.mkd for licensing and copyright information.
8 // ---------------------------------------------------------------------------
10 package javax.microedition.swm;
12 import cc.squirreljme.runtime.cldc.annotation.Api;
14 /**
15 * This enumeration contains the many ways which applications can be failed
16 * to be installed.
18 * @since 2016/06/24
20 @Api
21 @SuppressWarnings("FieldNamingConvention")
22 public enum InstallErrorCodes
24 /** The applicaton is already installed. */
25 @Api
26 ALREADY_INSTALLED,
28 /** The dependency of an application is in conflict. */
29 @Api
30 APP_INTEGRITY_FAILURE_DEPENDENCY_CONFLICT,
32 /** The dependency of an application is mismatched. */
33 @Api
34 APP_INTEGRITY_FAILURE_DEPENDENCY_MISMATCH,
36 /** The hash sum of an application is invalid. */
37 @Api
38 APP_INTEGRITY_FAILURE_HASH_MISMATCH,
40 /** The application is blacklisted. */
41 @Api
42 APPLICATION_BLACKLISTED,
44 /** An attribute does not match. */
45 @Api
46 ATTRIBUTE_MISMATCH,
48 /** Could not authenticate. */
49 @Api
50 AUTHENTICATION_FAILURE,
52 /** Not authorized to install the application. */
53 @Api
54 AUTHORIZATION_FAILURE,
56 /** The certificate authority has been disabled. */
57 @Api
58 CA_DISABLED,
60 /** Installation cancelled. */
61 @Api
62 CANCELLED,
64 /** Cannot authenticate. */
65 @Api
66 CANNOT_AUTH,
68 /** A dependency eventually depends on itself. */
69 @Api
70 CIRCULAR_COMPONENT_DEPENDENCY,
72 /** The client requesting the program has been blacklisted. */
73 @Api
74 CLIENT_BLACKLISTED,
76 /** Dynamic componenent dependencies limit exceeded. */
77 @Api
78 COMPONENT_DEPS_LIMIT_EXCEEDED,
80 /** There is a conflict in a content handler. */
81 @Api
82 CONTENT_HANDLER_CONFLICT,
84 /** The hash sum of a dependency is mismatched. */
85 @Api
86 CORRUPT_DEPENDENCY_HASH,
88 /** The JAR is malformed. */
89 @Api
90 CORRUPT_JAR,
92 /** The certificate of the provider is malformed. */
93 @Api
94 CORRUPT_PROVIDER_CERT,
96 /** The signature of a JAR is incorrect. */
97 @Api
98 CORRUPT_SIGNATURE,
100 /** The JAR cannot run on this device. */
101 @Api
102 DEVICE_INCOMPATIBLE,
104 /** JAR or JAD has a duplicated key. */
105 @Api
106 DUPLICATED_KEY,
108 /** The certificate authority's key has expired. */
109 @Api
110 EXPIRED_CA_KEY,
112 /** The provider's certficate has expired. */
113 @Api
114 EXPIRED_PROVIDER_CERT,
116 /** Not enough space for installation. */
117 @Api
118 INSUFFICIENT_STORAGE,
120 /** The JAD type is not valid. */
121 @Api
122 INVALID_JAD_TYPE,
124 /** The JAD URL is not valid. */
125 @Api
126 INVALID_JAD_URL,
128 /** The JAR type is not valid. */
129 @Api
130 INVALID_JAR_TYPE,
132 /** The JAR URL is not valid. */
133 @Api
134 INVALID_JAR_URL,
136 /** Manifest contains an invalid key. */
137 @Api
138 INVALID_KEY,
140 /** Cannot load native libraries within a JAR. */
141 @Api
142 INVALID_NATIVE_LIBRARY,
144 /** Payment information incorrect. */
145 @Api
146 INVALID_PAYMENT_INFO,
148 /** The provider certificate is not valid. */
149 @Api
150 INVALID_PROVIDER_CERT,
152 /** The signature is not valid. */
153 @Api
154 INVALID_SIGNATURE,
156 /** The value of a manifest key is not correct. */
157 @Api
158 INVALID_VALUE,
160 /** The version format is not valid. */
161 @Api
162 INVALID_VERSION,
164 /** Failed to read or write the file. */
165 @Api
166 IO_FILE_ERROR,
168 /** Failed to read from or write to network. */
169 @Api
170 IO_NETWORK_ERROR,
172 /** The JAD URL has moved. */
173 @Api
174 JAD_MOVED,
176 /** The JAD was not found. */
177 @Api
178 JAD_NOT_FOUND,
180 /** The server hosting the JAD was not found. */
181 @Api
182 JAD_SERVER_NOT_FOUND,
184 /** JAR class file verification failed. */
185 @Api
186 JAR_CLASSES_VERIFICATION_FAILED,
188 /** The JAR is locked. */
189 @Api
190 JAR_IS_LOCKED,
192 /** The JAR was not found. */
193 @Api
194 JAR_NOT_FOUND,
196 /** The server containin the JAR was not found. */
197 @Api
198 JAR_SERVER_NOT_FOUND,
200 /** The JAR size is not correctly matched. */
201 @Api
202 JAR_SIZE_MISMATCH,
204 /** The name of a LIBlet collides with another LIBlet. */
205 @Api
206 LIBLET_NAMESPACE_COLLISION,
208 /** The configuration (MIDP, etc.) is missing from the manifest. */
209 @Api
210 MISSING_CONFIGURATION,
212 /** The hash code of a dependency is missing. */
213 @Api
214 MISSING_DEPENDENCY_HASH,
216 /** The JAD URL of a dependency is missing. */
217 @Api
218 MISSING_DEPENDENCY_JAD_URL,
220 /** The JAR size has not been specified. */
221 @Api
222 MISSING_JAR_SIZE,
224 /** The URL to the JAR has not been specified. */
225 @Api
226 MISSING_JAR_URL,
228 /** The profile (CLDC, etc.) is missing from the manifest. */
229 @Api
230 MISSING_PROFILE,
232 /** The provider certificate is missing. */
233 @Api
234 MISSING_PROVIDER_CERT,
236 /** No suite name was specified. */
237 @Api
238 MISSING_SUITE_NAME,
240 /** No vendor was specified. */
241 @Api
242 MISSING_VENDOR,
244 /** No version was specified. */
245 @Api
246 MISSING_VERSION,
248 /** The suite to be installed is newer than the current one. */
249 @Api
250 NEW_VERSION,
252 /** Not an error. */
253 @Api
254 NO_ERROR,
256 /** Another error occured. */
257 @Api
258 OTHER_ERROR,
260 /** Authetication with a proxy is required. */
261 @Api
262 PROXY_AUTH,
264 /** The push registration is not in the {@code MIDlet-n} attribute. */
265 @Api
266 PUSH_CLASS_FAILURE,
268 /** The push registration is already taken. */
269 @Api
270 PUSH_DUP_FAILURE,
272 /** The format of a push registration is not valid. */
273 @Api
274 PUSH_FORMAT_FAILURE,
276 /** The protocol of a push registration has failed. */
277 @Api
278 PUSH_PROTO_FAILURE,
280 /** The certificate has been revoked. */
281 @Api
282 REVOKED_CERT,
284 /** The name of the suite mismatches. */
285 @Api
286 SUITE_NAME_MISMATCH,
288 /** There are more properties than the available amount of memory. */
289 @Api
290 TOO_MANY_PROPS,
292 /** Trusted suites cannot be overwritten. */
293 @Api
294 TRUSTED_OVERWRITE_FAILURE,
296 /** Not authorized. */
297 @Api
298 UNAUTHORIZED,
300 /** Not authorized to install suits. */
301 @Api
302 UNAUTHORIZED_INSTALL,
304 /** Unknown certificate authority. */
305 @Api
306 UNKNOWN_CA,
308 /** Unknown certificate status. */
309 @Api
310 UNKNOWN_CERT_STATUS,
312 /** Certificate not supported. */
313 @Api
314 UNSUPPORTED_CERT,
316 /** Certificate character encoding not supported. */
317 @Api
318 UNSUPPORTED_CHAR_ENCODING,
320 /** Payment information not supported. */
321 @Api
322 UNSUPPORTED_PAYMENT_INFO,
324 /** The payment suite is not trusted. */
325 @Api
326 UNTRUSTED_PAYMENT_SUITE,
328 /** Vendor mismatched. */
329 @Api
330 VENDOR_MISMATCH,
332 /** Version mismatched. */
333 @Api
334 VERSION_MISMATCH,
336 /** End. */