1 // -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
2 // ---------------------------------------------------------------------------
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
;
15 * This enumeration contains the many ways which applications can be failed
21 @SuppressWarnings("FieldNamingConvention")
22 public enum InstallErrorCodes
24 /** The applicaton is already installed. */
28 /** The dependency of an application is in conflict. */
30 APP_INTEGRITY_FAILURE_DEPENDENCY_CONFLICT
,
32 /** The dependency of an application is mismatched. */
34 APP_INTEGRITY_FAILURE_DEPENDENCY_MISMATCH
,
36 /** The hash sum of an application is invalid. */
38 APP_INTEGRITY_FAILURE_HASH_MISMATCH
,
40 /** The application is blacklisted. */
42 APPLICATION_BLACKLISTED
,
44 /** An attribute does not match. */
48 /** Could not authenticate. */
50 AUTHENTICATION_FAILURE
,
52 /** Not authorized to install the application. */
54 AUTHORIZATION_FAILURE
,
56 /** The certificate authority has been disabled. */
60 /** Installation cancelled. */
64 /** Cannot authenticate. */
68 /** A dependency eventually depends on itself. */
70 CIRCULAR_COMPONENT_DEPENDENCY
,
72 /** The client requesting the program has been blacklisted. */
76 /** Dynamic componenent dependencies limit exceeded. */
78 COMPONENT_DEPS_LIMIT_EXCEEDED
,
80 /** There is a conflict in a content handler. */
82 CONTENT_HANDLER_CONFLICT
,
84 /** The hash sum of a dependency is mismatched. */
86 CORRUPT_DEPENDENCY_HASH
,
88 /** The JAR is malformed. */
92 /** The certificate of the provider is malformed. */
94 CORRUPT_PROVIDER_CERT
,
96 /** The signature of a JAR is incorrect. */
100 /** The JAR cannot run on this device. */
104 /** JAR or JAD has a duplicated key. */
108 /** The certificate authority's key has expired. */
112 /** The provider's certficate has expired. */
114 EXPIRED_PROVIDER_CERT
,
116 /** Not enough space for installation. */
118 INSUFFICIENT_STORAGE
,
120 /** The JAD type is not valid. */
124 /** The JAD URL is not valid. */
128 /** The JAR type is not valid. */
132 /** The JAR URL is not valid. */
136 /** Manifest contains an invalid key. */
140 /** Cannot load native libraries within a JAR. */
142 INVALID_NATIVE_LIBRARY
,
144 /** Payment information incorrect. */
146 INVALID_PAYMENT_INFO
,
148 /** The provider certificate is not valid. */
150 INVALID_PROVIDER_CERT
,
152 /** The signature is not valid. */
156 /** The value of a manifest key is not correct. */
160 /** The version format is not valid. */
164 /** Failed to read or write the file. */
168 /** Failed to read from or write to network. */
172 /** The JAD URL has moved. */
176 /** The JAD was not found. */
180 /** The server hosting the JAD was not found. */
182 JAD_SERVER_NOT_FOUND
,
184 /** JAR class file verification failed. */
186 JAR_CLASSES_VERIFICATION_FAILED
,
188 /** The JAR is locked. */
192 /** The JAR was not found. */
196 /** The server containin the JAR was not found. */
198 JAR_SERVER_NOT_FOUND
,
200 /** The JAR size is not correctly matched. */
204 /** The name of a LIBlet collides with another LIBlet. */
206 LIBLET_NAMESPACE_COLLISION
,
208 /** The configuration (MIDP, etc.) is missing from the manifest. */
210 MISSING_CONFIGURATION
,
212 /** The hash code of a dependency is missing. */
214 MISSING_DEPENDENCY_HASH
,
216 /** The JAD URL of a dependency is missing. */
218 MISSING_DEPENDENCY_JAD_URL
,
220 /** The JAR size has not been specified. */
224 /** The URL to the JAR has not been specified. */
228 /** The profile (CLDC, etc.) is missing from the manifest. */
232 /** The provider certificate is missing. */
234 MISSING_PROVIDER_CERT
,
236 /** No suite name was specified. */
240 /** No vendor was specified. */
244 /** No version was specified. */
248 /** The suite to be installed is newer than the current one. */
256 /** Another error occured. */
260 /** Authetication with a proxy is required. */
264 /** The push registration is not in the {@code MIDlet-n} attribute. */
268 /** The push registration is already taken. */
272 /** The format of a push registration is not valid. */
276 /** The protocol of a push registration has failed. */
280 /** The certificate has been revoked. */
284 /** The name of the suite mismatches. */
288 /** There are more properties than the available amount of memory. */
292 /** Trusted suites cannot be overwritten. */
294 TRUSTED_OVERWRITE_FAILURE
,
296 /** Not authorized. */
300 /** Not authorized to install suits. */
302 UNAUTHORIZED_INSTALL
,
304 /** Unknown certificate authority. */
308 /** Unknown certificate status. */
312 /** Certificate not supported. */
316 /** Certificate character encoding not supported. */
318 UNSUPPORTED_CHAR_ENCODING
,
320 /** Payment information not supported. */
322 UNSUPPORTED_PAYMENT_INFO
,
324 /** The payment suite is not trusted. */
326 UNTRUSTED_PAYMENT_SUITE
,
328 /** Vendor mismatched. */
332 /** Version mismatched. */