Tabnine Logo
AVErrorUtils.invalidObjectIdException
Code IndexAdd Tabnine to your IDE (free)

How to use
invalidObjectIdException
method
in
com.avos.avoscloud.AVErrorUtils

Best Java code snippets using com.avos.avoscloud.AVErrorUtils.invalidObjectIdException (Showing top 6 results out of 315)

origin: cn.leancloud.android/avoscloud-sdk

static boolean checkStatusId(String statusId, StatusCallback callback) {
 if (AVUtils.isBlankString(statusId)) {
  if (callback != null) {
   callback.internalDone(null, AVErrorUtils.invalidObjectIdException());
  }
  return false;
 }
 return true;
}
origin: cn.leancloud/leancloud-common

static boolean checkStatusId(String statusId, StatusCallback callback) {
 if (AVUtils.isBlankString(statusId)) {
  if (callback != null) {
   callback.internalDone(null, AVErrorUtils.invalidObjectIdException());
  }
  return false;
 }
 return true;
}
origin: cn.leancloud.android/avoscloud-sdk

/**
 * 通过用户ID获取其发布的公开的状态列表
 * 
 * @param userObejctId 用户的objectId
 * @param skip 跳过条数
 * @param limit 需要返回的条数 默认`100`,最大`100`
 * @param callback 回调结果
 */
@Deprecated
public static void getStatusesFromUser(final String userObejctId, long skip, long limit,
  final StatusListCallback callback) {
 if (AVUtils.isBlankString(userObejctId)) {
  if (callback != null) {
   callback.internalDone(null, AVErrorUtils.invalidObjectIdException());
  }
  return;
 }
 Map<String, String> params = sourceQueryMap(userObejctId, skip, limit);
 getStatusImpl(STATUS_ENDPOINT, params, callback);
}
origin: cn.leancloud/leancloud-common

/**
 * 通过用户ID获取其发布的公开的状态列表
 * 
 * @param userObejctId 用户的objectId
 * @param skip 跳过条数
 * @param limit 需要返回的条数 默认`100`,最大`100`
 * @param callback 回调结果
 */
@Deprecated
public static void getStatusesFromUser(final String userObejctId, long skip, long limit,
  final StatusListCallback callback) {
 if (AVUtils.isBlankString(userObejctId)) {
  if (callback != null) {
   callback.internalDone(null, AVErrorUtils.invalidObjectIdException());
  }
  return;
 }
 Map<String, String> params = sourceQueryMap(userObejctId, skip, limit);
 getStatusImpl(STATUS_END_POINT, params, callback);
}
origin: cn.leancloud.android/avoscloud-sdk

private static void deleteStatusWithId(boolean sync, String statusId,
  final DeleteCallback callback) {
 if (!checkCurrentUser(null)) {
  if (callback != null) {
   callback.internalDone(AVErrorUtils.sessionMissingException());
  }
  return;
 }
 if (AVUtils.isBlankString(statusId)) {
  if (callback != null) {
   callback.internalDone(AVErrorUtils.invalidObjectIdException());
  }
  return;
 }
 String endPoint = String.format("statuses/%s", statusId);
 PaasClient.storageInstance().deleteObject(endPoint, sync, new GenericObjectCallback() {
  @Override
  public void onSuccess(String content, AVException e) {
   if (callback != null) {
    callback.internalDone(null);
   }
  }
  @Override
  public void onFailure(Throwable error, String content) {
   if (callback != null) {
    callback.internalDone(AVErrorUtils.createException(error, content));
   }
  }
 }, statusId, null);
}
origin: cn.leancloud/leancloud-common

private static void deleteStatusWithId(boolean sync, String statusId,
  final DeleteCallback callback) {
 if (!checkCurrentUser(null)) {
  if (callback != null) {
   callback.internalDone(AVErrorUtils.sessionMissingException());
  }
  return;
 }
 if (AVUtils.isBlankString(statusId)) {
  if (callback != null) {
   callback.internalDone(AVErrorUtils.invalidObjectIdException());
  }
  return;
 }
 String endPoint = String.format("statuses/%s", statusId);
 PaasClient.storageInstance().deleteObject(endPoint, sync, new GenericObjectCallback() {
  @Override
  public void onSuccess(String content, AVException e) {
   if (callback != null) {
    callback.internalDone(null);
   }
  }
  @Override
  public void onFailure(Throwable error, String content) {
   if (callback != null) {
    callback.internalDone(AVErrorUtils.createException(error, content));
   }
  }
 }, statusId, null);
}
com.avos.avoscloudAVErrorUtilsinvalidObjectIdException

Popular methods of AVErrorUtils

  • createException
  • circleException
  • errorCode
  • sessionMissingException
  • createExceptions

Popular in Java

  • Start an intent from android
  • runOnUiThread (Activity)
  • getSystemService (Context)
  • addToBackStack (FragmentTransaction)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • Menu (java.awt)
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now