congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
AVErrorUtils.errorCode
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: cn.leancloud.android/avoscloud-sdk

@Override
public void onSuccess(int statusCode, Headers headers, byte[] body) {
 String content = AVUtils.stringFromBytes(body);
 if (AVOSCloud.isDebugLogEnabled()) {
  LogUtil.avlog.d(content);
 }
 String contentType = PaasClient.extractContentType(headers);
 if (AVUtils.checkResponseType(statusCode, content, contentType, getCallback())) return;
 int code = AVErrorUtils.errorCode(content);
 if (code > 0) {
  if (getCallback() != null) {
   getCallback().onFailure(AVErrorUtils.createException(code, content), content);
  }
  return;
 }
 if (getCallback() != null) {
  getCallback().onSuccess(content, null);
 }
 // 在有请求成功的时候,安排一次archiveRequest发送。真正发起请求则是在之后的30秒后
 ArchiveRequestTaskController.schedule();
}
origin: cn.leancloud/leancloud-common

@Override
public void onSuccess(int statusCode, Header[] headers, byte[] body) {
 String content = AVUtils.stringFromBytes(body);
 if (InternalConfigurationController.globalInstance().getInternalLogger().isDebugEnabled()) {
  LogUtil.avlog.d(content);
 }
 String contentType = AVUtils.extractContentType(headers);
 if (AVUtils.checkResponseType(statusCode, content, contentType, getCallback()))
  return;
 int code = AVErrorUtils.errorCode(content);
 if (code > 0) {
  if (getCallback() != null) {
   getCallback().onFailure(AVErrorUtils.createException(content), content);
  }
  return;
 }
 if (getCallback() != null) {
  getCallback().onSuccess(content, null);
 }
}
origin: cn.leancloud.android/avoscloud-sdk

if (AVUtils.checkResponseType(statusCode, content, contentType, getCallback())) return;
int code = AVErrorUtils.errorCode(content);
if (code > 0) {
 if (getCallback() != null) {
origin: cn.leancloud/leancloud-common

 return;
int code = AVErrorUtils.errorCode(content);
if (code > 0) {
 if (getCallback() != null) {
com.avos.avoscloudAVErrorUtilserrorCode

Popular methods of AVErrorUtils

  • createException
  • circleException
  • invalidObjectIdException
  • sessionMissingException
  • createExceptions

Popular in Java

  • Finding current android device location
  • getResourceAsStream (ClassLoader)
  • addToBackStack (FragmentTransaction)
  • setRequestProperty (URLConnection)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • JList (javax.swing)
  • Top Sublime Text plugins
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