Home | History | Annotate | Download | only in setup

Lines Matching refs:MessagingException

32 import com.android.emailcommon.mail.MessagingException;
76 private MessagingException mProgressException;
100 * @param hostName Passed back from the MessagingException
107 * {@link CheckSettingsErrorDialogFragment#getReasonFromException(MessagingException)}
109 * {@link CheckSettingsErrorDialogFragment#getErrorString(Context, MessagingException)}
218 private void reportProgress(int newState, MessagingException ex) {
286 public static class AutoDiscoverResults extends MessagingException {
310 private static class AccountCheckTask extends AsyncTask<Void, Integer, MessagingException> {
344 protected MessagingException doInBackground(Void... params) {
354 // MessagingException.AUTHENTICATION_FAILED: username/password rejected
362 if (errorCode == MessagingException.AUTODISCOVER_AUTHENTICATION_FAILED) {
364 } else if (errorCode != MessagingException.NO_ERROR) {
385 return new MessagingException(MessagingException.UNSPECIFIED_EXCEPTION);
396 if (resultCode == MessagingException.SECURITY_POLICIES_REQUIRED &&
398 resultCode = MessagingException.NO_ERROR;
400 if (resultCode == MessagingException.SECURITY_POLICIES_REQUIRED) {
403 return new MessagingException(resultCode, mStoreHost);
404 } else if (resultCode == MessagingException.SECURITY_POLICIES_UNSUPPORTED) {
410 return new MessagingException(resultCode, mStoreHost, data);
411 } else if (resultCode != MessagingException.NO_ERROR) {
415 return new MessagingException(resultCode, errorMessage);
442 } catch (final MessagingException me) {
443 // Some of the legacy account checkers return errors by throwing MessagingException,
469 protected void onPostExecute(MessagingException result) {
480 case MessagingException.AUTODISCOVER_AUTHENTICATION_FAILED:
483 case MessagingException.AUTODISCOVER_AUTHENTICATION_RESULT:
488 case MessagingException.SECURITY_POLICIES_REQUIRED: