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
74 // String version of error status codes (for logging only)
90 public static boolean isNeedsProvisioning(int status) {
91 return (status == CommandStatus.NEEDS_PROVISIONING ||
92 status == CommandStatus.NEEDS_PROVISIONING_REFRESH ||
93 status == CommandStatus.NEEDS_PROVISIONING_INVALID ||
94 status == CommandStatus.NEEDS_PROVISIONING_WIPE);
97 public static boolean isBadSyncKey(int status) {
98 return (status == CommandStatus.SYNC_STATE_CORRUPT ||
99 status == CommandStatus.SYNC_STATE_INVALID);
102 public static boolean isDeniedAccess(int status) {
103 return (status == CommandStatus.USER_DISABLED_FOR_SYNC ||
104 status == CommandStatus.USERS_DISABLED_FOR_SYNC ||
105 status == CommandStatus.USER_ON_LEGACY_SERVER_CANT_SYNC ||
106 status == CommandStatus.DEVICE_QUARANTINED ||
107 status == CommandStatus.ACCESS_DENIED ||
108 status == CommandStatus.USER_ACCOUNT_DISABLED ||
109 status == CommandStatus.NOT_PROVISIONABLE_LEGACY_DEVICE ||
110 status == CommandStatus.NOT_PROVISIONABLE_PARTIAL ||
111 status == CommandStatus.TOO_MANY_PARTNERSHIPS);
114 public static boolean isTransientError(int status) {
115 return status == CommandStatus.SYNC_STATE_NOT_FOUND ||
116 status == CommandStatus.SERVER_ERROR_RETRY;
119 public static String toString(int status) {
121 sb.append(status);
123 if (status < STATUS_TEXT_START || status > STATUS_TEXT_END) {
126 int offset = status - STATUS_TEXT_START;
136 public CommandStatusException(int status) {
137 mStatus = status;
141 public CommandStatusException(int status, String itemId) {
142 mStatus = status;