Skip to content
This repository has been archived by the owner on Apr 1, 2024. It is now read-only.

ファイルストアからCount取得エラー発生 #103

Closed
sensp opened this issue Feb 2, 2017 · 0 comments
Closed

ファイルストアからCount取得エラー発生 #103

sensp opened this issue Feb 2, 2017 · 0 comments
Assignees

Comments

@sensp
Copy link
Contributor

sensp commented Feb 2, 2017

  • NCMBFileからquery.count()とquery.countInBackground()取得時にエラー発生します。

  • エラー内容
    W/System.err: com.nifty.cloud.mb.core.NCMBException: Operation that are prohibited.

  • 例文
    //ファイルストアオブジェクト
    NCMBQuery query = NCMBFile.getQuery();

          query.countInBackground(new CountCallback() {
              @Override
              public void done(int countNumber, NCMBException e) {
                  if (e != null) {
                      //カウントでエラーが発生した場合の処理
                      Log.d("test","File全取得 エラー = " + e.getMessage() );
                  } else {
                      //カウントが成功した場合の処理
                      Log.d("test","File全取得 成功 = " + countNumber);
                  }
              }
          });
    
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants