程序包 cn.leancloud

类 LCException

  • 所有已实现的接口:
    java.io.Serializable

    public class LCException
    extends java.lang.Exception
    另请参阅:
    序列化表格
    • 字段概要

      字段 
      修饰符和类型 字段 说明
      static int ACCOUNT_ALREADY_LINKED
      Error code indicating that an an account being linked is already linked to another user.
      static int CACHE_MISS
      Error code indicating the result was not found in the cache.
      static java.lang.String CACHE_MISSING_ERROR  
      static int CIRCLE_REFERENCE  
      protected int code  
      static int COMMAND_UNAVAILABLE
      Error code indicating that the feature you tried to access is only available internally for testing purposes.
      static int CONNECTION_FAILED
      Error code indicating the connection to the AVOSCloud servers failed.
      static int DUPLICATE_VALUE
      Error code indicating that a unique field was given a value that is already taken.
      static int EMAIL_MISSING
      Error code indicating that the email is missing, but must be specified.
      static int EMAIL_NOT_FOUND
      Error code indicating that an user with the specified email was not found.
      static int EMAIL_TAKEN
      Error code indicating that the email has already been taken.
      static int EXCEEDED_QUOTA
      Error code indicating that an application quota was exceeded.
      static int FILE_DELETE_ERROR
      Error code indicating that deleting a file failed.
      static int FILE_DOWNLOAD_INCONSISTENT_FAILURE
      Error code indicating the file checkSum value is not equals to original file
      static int FILE_UPLOAD_FAILURE
      Error code indicating there is error whiling uploading AVFile.
      static int INCORRECT_TYPE
      Error code indicating that a field was set to an inconsistent type.
      static int INTERNAL_SERVER_ERROR
      Error code indicating that something has gone wrong with the server.
      static int INVALID_ACL
      Error code indicating an invalid ACL was provided.
      static int INVALID_CHANNEL_NAME
      Error code indicating an invalid channel name.
      static int INVALID_CLASS_NAME
      Error code indicating a missing or invalid classname.
      static int INVALID_EMAIL_ADDRESS
      Error code indicating that the email address was invalid.
      static int INVALID_FILE_NAME
      Error code indicating that an invalid filename was used for AVFile.
      static int INVALID_FILE_URL
      Error code indicating that the file address was invalid.
      static int INVALID_JSON
      Error code indicating that badly formed JSON was received upstream.
      static int INVALID_KEY_NAME
      Error code indicating an invalid key name.
      static int INVALID_LINKED_SESSION
      Error code indicating that an user with a linked (e.g.
      static int INVALID_NESTED_KEY
      Error code indicating that an invalid key was used in a nested JSONObject.
      static int INVALID_PARAMETER  
      static int INVALID_PHONE_NUMBER
      用来标识手机号码格式错误的错误代码
      static int INVALID_POINTER
      Error code indicating a malformed pointer.
      static int INVALID_QUERY
      Error code indicating you tried to query with a datatype that doesn't support it, like exact matching an array or object.
      static int INVALID_ROLE_NAME
      Error code indicating that a role's name is invalid.
      static int INVALID_STATE  
      static int LINKED_ID_MISSING
      Error code indicating that an user cannot be linked to an account because that account's id could not be found.
      static int MISSING_OBJECT_ID
      Error code indicating an unspecified object id.
      static int MUST_CREATE_USER_THROUGH_SIGNUP
      Error code indicating that an user can only be created through signup.
      static int NOT_INITIALIZED
      You must call AVOSCloud.initialize before using the AVOSCloud library.
      static int OBJECT_NOT_FOUND
      Error code indicating the specified object doesn't exist.
      static int OBJECT_TOO_LARGE
      Error code indicating that the object is too large.
      static int OPERATION_FORBIDDEN
      Error code indicating that the operation isn't allowed for clients.
      static int OTHER_CAUSE  
      static int PASSWORD_MISSING
      Error code indicating that the password is missing or empty.
      static int PUSH_MISCONFIGURED
      Error code indicating that push is misconfigured.
      static int RATE_LIMITED
      Error code indicating client is rate limited by avoscloud server.
      static int SCRIPT_ERROR
      Error code indicating that a Cloud Code script failed.
      static int SESSION_MISSING
      Error code indicating that an user object without a valid session could not be altered.
      static int TIMEOUT
      Error code indicating that the request timed out on the server.
      static int UNKNOWN
      Error code indicating unknown reason.
      static int UNSUPPORTED_SERVICE
      Error code indicating that a service being linked (e.g.
      static int USER_DOESNOT_EXIST
      Error code indicating that user doesn't exist
      static int USER_ID_MISMATCH
      Error code indicating that User ID mismatch.
      static int USER_MOBILE_PHONENUMBER_TAKEN
      这个号码已经绑定过别的账号了
      static int USER_MOBILEPHONE_MISSING
       用户并没有绑定手机号码
      static int USER_MOBILEPHONE_NOT_VERIFIED
      这个手机号码尚未被验证过
      static int USER_WITH_MOBILEPHONE_NOT_FOUND
       没有找到绑定了该手机号的用户
      static int USERNAME_MISSING
      Error code indicating that the username is missing or empty.
      static int USERNAME_PASSWORD_MISMATCH
      Error code indicating that username and password mismatched.
      static int USERNAME_TAKEN
      Error code indicating that the username has already been taken.
      static int VALIDATION_ERROR
      Error code indicating that cloud code validation failed.
    • 构造器概要

      构造器 
      构造器 说明
      LCException​(int theCode, java.lang.String theMessage)
      Construct a new AVException with a particular error code.
      LCException​(java.lang.String message, java.lang.Throwable cause)
      Construct a new AVException with an external cause.
      LCException​(java.lang.Throwable cause)
      Construct a new AVException with an external cause.
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      int getCode()
      Access the code for this error.
      • 从类继承的方法 java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 字段详细资料

      • code

        protected final int code
      • OTHER_CAUSE

        public static final int OTHER_CAUSE
        另请参阅:
        常量字段值
      • INTERNAL_SERVER_ERROR

        public static final int INTERNAL_SERVER_ERROR
        Error code indicating that something has gone wrong with the server. If you get this error code, it is AVOSCloud's fault.
        另请参阅:
        常量字段值
      • CONNECTION_FAILED

        public static final int CONNECTION_FAILED
        Error code indicating the connection to the AVOSCloud servers failed.
        另请参阅:
        常量字段值
      • OBJECT_NOT_FOUND

        public static final int OBJECT_NOT_FOUND
        Error code indicating the specified object doesn't exist.
        另请参阅:
        常量字段值
      • INVALID_QUERY

        public static final int INVALID_QUERY
        Error code indicating you tried to query with a datatype that doesn't support it, like exact matching an array or object.
        另请参阅:
        常量字段值
      • INVALID_CLASS_NAME

        public static final int INVALID_CLASS_NAME
        Error code indicating a missing or invalid classname. Classnames are case-sensitive. They must start with a letter, and a-zA-Z0-9_ are the only valid characters.
        另请参阅:
        常量字段值
      • MISSING_OBJECT_ID

        public static final int MISSING_OBJECT_ID
        Error code indicating an unspecified object id.
        另请参阅:
        常量字段值
      • INVALID_KEY_NAME

        public static final int INVALID_KEY_NAME
        Error code indicating an invalid key name. Keys are case-sensitive. They must start with a letter, and a-zA-Z0-9_ are the only valid characters.
        另请参阅:
        常量字段值
      • INVALID_POINTER

        public static final int INVALID_POINTER
        Error code indicating a malformed pointer. You should not see this unless you have been mucking about changing internal AVOSCloud code.
        另请参阅:
        常量字段值
      • INVALID_JSON

        public static final int INVALID_JSON
        Error code indicating that badly formed JSON was received upstream. This either indicates you have done something unusual with modifying how things encode to JSON, or the network is failing badly.
        另请参阅:
        常量字段值
      • COMMAND_UNAVAILABLE

        public static final int COMMAND_UNAVAILABLE
        Error code indicating that the feature you tried to access is only available internally for testing purposes.
        另请参阅:
        常量字段值
      • NOT_INITIALIZED

        public static final int NOT_INITIALIZED
        You must call AVOSCloud.initialize before using the AVOSCloud library.
        另请参阅:
        常量字段值
      • INCORRECT_TYPE

        public static final int INCORRECT_TYPE
        Error code indicating that a field was set to an inconsistent type.
        另请参阅:
        常量字段值
      • INVALID_CHANNEL_NAME

        public static final int INVALID_CHANNEL_NAME
        Error code indicating an invalid channel name. A channel name is either an empty string (the broadcast channel) or contains only a-zA-Z0-9_ characters and starts with a letter.
        另请参阅:
        常量字段值
      • PUSH_MISCONFIGURED

        public static final int PUSH_MISCONFIGURED
        Error code indicating that push is misconfigured.
        另请参阅:
        常量字段值
      • OBJECT_TOO_LARGE

        public static final int OBJECT_TOO_LARGE
        Error code indicating that the object is too large.
        另请参阅:
        常量字段值
      • OPERATION_FORBIDDEN

        public static final int OPERATION_FORBIDDEN
        Error code indicating that the operation isn't allowed for clients.
        另请参阅:
        常量字段值
      • CACHE_MISS

        public static final int CACHE_MISS
        Error code indicating the result was not found in the cache.
        另请参阅:
        常量字段值
      • INVALID_NESTED_KEY

        public static final int INVALID_NESTED_KEY
        Error code indicating that an invalid key was used in a nested JSONObject.
        另请参阅:
        常量字段值
      • INVALID_FILE_NAME

        public static final int INVALID_FILE_NAME
        Error code indicating that an invalid filename was used for AVFile. A valid file name contains only a-zA-Z0-9_. characters and is between 1 and 128 characters.
        另请参阅:
        常量字段值
      • INVALID_ACL

        public static final int INVALID_ACL
        Error code indicating an invalid ACL was provided.
        另请参阅:
        常量字段值
      • TIMEOUT

        public static final int TIMEOUT
        Error code indicating that the request timed out on the server. Typically this indicates that the request is too expensive to run.
        另请参阅:
        常量字段值
      • INVALID_EMAIL_ADDRESS

        public static final int INVALID_EMAIL_ADDRESS
        Error code indicating that the email address was invalid.
        另请参阅:
        常量字段值
      • INVALID_FILE_URL

        public static final int INVALID_FILE_URL
        Error code indicating that the file address was invalid.
        另请参阅:
        常量字段值
      • INVALID_PHONE_NUMBER

        public static final int INVALID_PHONE_NUMBER
        用来标识手机号码格式错误的错误代码
        另请参阅:
        常量字段值
      • DUPLICATE_VALUE

        public static final int DUPLICATE_VALUE
        Error code indicating that a unique field was given a value that is already taken.
        另请参阅:
        常量字段值
      • INVALID_ROLE_NAME

        public static final int INVALID_ROLE_NAME
        Error code indicating that a role's name is invalid.
        另请参阅:
        常量字段值
      • EXCEEDED_QUOTA

        public static final int EXCEEDED_QUOTA
        Error code indicating that an application quota was exceeded. Upgrade to resolve.
        另请参阅:
        常量字段值
      • SCRIPT_ERROR

        public static final int SCRIPT_ERROR
        Error code indicating that a Cloud Code script failed.
        另请参阅:
        常量字段值
      • VALIDATION_ERROR

        public static final int VALIDATION_ERROR
        Error code indicating that cloud code validation failed.
        另请参阅:
        常量字段值
      • FILE_DELETE_ERROR

        public static final int FILE_DELETE_ERROR
        Error code indicating that deleting a file failed.
        另请参阅:
        常量字段值
      • USERNAME_MISSING

        public static final int USERNAME_MISSING
        Error code indicating that the username is missing or empty.
        另请参阅:
        常量字段值
      • PASSWORD_MISSING

        public static final int PASSWORD_MISSING
        Error code indicating that the password is missing or empty.
        另请参阅:
        常量字段值
      • USERNAME_TAKEN

        public static final int USERNAME_TAKEN
        Error code indicating that the username has already been taken.
        另请参阅:
        常量字段值
      • EMAIL_TAKEN

        public static final int EMAIL_TAKEN
        Error code indicating that the email has already been taken.
        另请参阅:
        常量字段值
      • EMAIL_MISSING

        public static final int EMAIL_MISSING
        Error code indicating that the email is missing, but must be specified.
        另请参阅:
        常量字段值
      • EMAIL_NOT_FOUND

        public static final int EMAIL_NOT_FOUND
        Error code indicating that an user with the specified email was not found.
        另请参阅:
        常量字段值
      • SESSION_MISSING

        public static final int SESSION_MISSING
        Error code indicating that an user object without a valid session could not be altered.
        另请参阅:
        常量字段值
      • MUST_CREATE_USER_THROUGH_SIGNUP

        public static final int MUST_CREATE_USER_THROUGH_SIGNUP
        Error code indicating that an user can only be created through signup.
        另请参阅:
        常量字段值
      • ACCOUNT_ALREADY_LINKED

        public static final int ACCOUNT_ALREADY_LINKED
        Error code indicating that an an account being linked is already linked to another user.
        另请参阅:
        常量字段值
      • USER_ID_MISMATCH

        public static final int USER_ID_MISMATCH
        Error code indicating that User ID mismatch.
        另请参阅:
        常量字段值
      • USERNAME_PASSWORD_MISMATCH

        public static final int USERNAME_PASSWORD_MISMATCH
        Error code indicating that username and password mismatched.
        另请参阅:
        常量字段值
      • USER_DOESNOT_EXIST

        public static final int USER_DOESNOT_EXIST
        Error code indicating that user doesn't exist
        另请参阅:
        常量字段值
      • USER_MOBILEPHONE_MISSING

        public static final int USER_MOBILEPHONE_MISSING
         用户并没有绑定手机号码
        另请参阅:
        常量字段值
      • USER_WITH_MOBILEPHONE_NOT_FOUND

        public static final int USER_WITH_MOBILEPHONE_NOT_FOUND
         没有找到绑定了该手机号的用户
        另请参阅:
        常量字段值
      • USER_MOBILE_PHONENUMBER_TAKEN

        public static final int USER_MOBILE_PHONENUMBER_TAKEN
        这个号码已经绑定过别的账号了
        另请参阅:
        常量字段值
      • USER_MOBILEPHONE_NOT_VERIFIED

        public static final int USER_MOBILEPHONE_NOT_VERIFIED
        这个手机号码尚未被验证过
        另请参阅:
        常量字段值
      • LINKED_ID_MISSING

        public static final int LINKED_ID_MISSING
        Error code indicating that an user cannot be linked to an account because that account's id could not be found.
        另请参阅:
        常量字段值
      • INVALID_LINKED_SESSION

        public static final int INVALID_LINKED_SESSION
        Error code indicating that an user with a linked (e.g. Facebook) account has an invalid session.
        另请参阅:
        常量字段值
      • UNSUPPORTED_SERVICE

        public static final int UNSUPPORTED_SERVICE
        Error code indicating that a service being linked (e.g. Facebook or Twitter) is unsupported.
        另请参阅:
        常量字段值
      • RATE_LIMITED

        public static final int RATE_LIMITED
        Error code indicating client is rate limited by avoscloud server.
        另请参阅:
        常量字段值
      • UNKNOWN

        public static final int UNKNOWN
        Error code indicating unknown reason.
        另请参阅:
        常量字段值
      • CACHE_MISSING_ERROR

        public static final java.lang.String CACHE_MISSING_ERROR
        另请参阅:
        常量字段值
      • FILE_DOWNLOAD_INCONSISTENT_FAILURE

        public static final int FILE_DOWNLOAD_INCONSISTENT_FAILURE
        Error code indicating the file checkSum value is not equals to original file
        另请参阅:
        常量字段值
      • FILE_UPLOAD_FAILURE

        public static final int FILE_UPLOAD_FAILURE
        Error code indicating there is error whiling uploading AVFile.
        另请参阅:
        常量字段值
      • INVALID_STATE

        public static final int INVALID_STATE
        另请参阅:
        常量字段值
      • INVALID_PARAMETER

        public static final int INVALID_PARAMETER
        另请参阅:
        常量字段值
      • CIRCLE_REFERENCE

        public static final int CIRCLE_REFERENCE
        另请参阅:
        常量字段值
    • 构造器详细资料

      • LCException

        public LCException​(int theCode,
                           java.lang.String theMessage)
        Construct a new AVException with a particular error code.
        参数:
        theCode - The error code to identify the type of exception.
        theMessage - A message describing the error in more detail.
      • LCException

        public LCException​(java.lang.String message,
                           java.lang.Throwable cause)
        Construct a new AVException with an external cause.
        参数:
        message - A message describing the error in more detail.
        cause - The cause of the error.
      • LCException

        public LCException​(java.lang.Throwable cause)
        Construct a new AVException with an external cause.
        参数:
        cause - The cause of the error.
    • 方法详细资料

      • getCode

        public int getCode()
        Access the code for this error.
        返回:
        The numerical code for this error.