Code example for AuthenticatorException

Methods: getMessage

0
          //AccountManager accountManager = AccountManager.get(context); 
          authToken = mAccountManager.blockingGetAuthToken(account, AUTH_TOKEN_TYPE, true);
        } catch (OperationCanceledException e) {
            Log.w(TAG, e.getMessage());
        } catch (AuthenticatorException e) {
            Log.w(TAG, e.getMessage());
        } catch (IOException e) {
            Log.w(TAG, e.getMessage());
        } 
        return null; 
      }; 
    }; 
 
    private class OnAuthToken implements AccountManagerCallback<Bundle> {
      Context mContext;
      public OnAuthToken(Context context){
        mContext = context;
      } 
      @Override 
      public void run(AccountManagerFuture<Bundle> amf) {
        try {