Home | History | Annotate | Download | only in exchange

Lines Matching refs:status

20  * ActiveSync command error status definitions (EAS 14.0 and later); these are in addition to the
26 // A status response to an EAS account. Responses < 16 correspond to command-specific errors as
75 // String version of error status codes (for logging only)
91 public static boolean isNeedsProvisioning(int status) {
92 return (status == CommandStatus.NEEDS_PROVISIONING ||
93 status == CommandStatus.NEEDS_PROVISIONING_REFRESH ||
94 status == CommandStatus.NEEDS_PROVISIONING_INVALID ||
95 status == CommandStatus.NEEDS_PROVISIONING_WIPE);
98 public static boolean isBadSyncKey(int status) {
99 return (status == CommandStatus.SYNC_STATE_CORRUPT ||
100 status == CommandStatus.SYNC_STATE_INVALID);
103 public static boolean isDeniedAccess(int status) {
104 return (status == CommandStatus.USER_DISABLED_FOR_SYNC ||
105 status == CommandStatus.USERS_DISABLED_FOR_SYNC ||
106 status == CommandStatus.USER_ON_LEGACY_SERVER_CANT_SYNC ||
107 status == CommandStatus.DEVICE_QUARANTINED ||
108 status == CommandStatus.ACCESS_DENIED ||
109 status == CommandStatus.USER_ACCOUNT_DISABLED ||
110 status == CommandStatus.NOT_PROVISIONABLE_LEGACY_DEVICE ||
111 status == CommandStatus.NOT_PROVISIONABLE_PARTIAL ||
112 status == CommandStatus.TOO_MANY_PARTNERSHIPS);
115 public static boolean isTransientError(int status) {
116 return status == CommandStatus.SYNC_STATE_NOT_FOUND ||
117 status == CommandStatus.SERVER_ERROR_RETRY;
120 public static String toString(int status) {
122 sb.append(status);
124 if (status < STATUS_TEXT_START || status > STATUS_TEXT_END) {
127 int offset = status - STATUS_TEXT_START;
137 public CommandStatusException(int status) {
138 mStatus = status;
142 public CommandStatusException(int status, String itemId) {
143 mStatus = status;