程序包 cn.leancloud
类 LCException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- cn.leancloud.LCException
-
- 所有已实现的接口:
java.io.Serializable
public class LCException extends java.lang.Exception- 另请参阅:
- 序列化表格
-
-
字段概要
字段 修饰符和类型 字段 说明 static intACCOUNT_ALREADY_LINKEDError code indicating that an an account being linked is already linked to another user.static intCACHE_MISSError code indicating the result was not found in the cache.static java.lang.StringCACHE_MISSING_ERRORstatic intCIRCLE_REFERENCEprotected intcodestatic intCOMMAND_UNAVAILABLEError code indicating that the feature you tried to access is only available internally for testing purposes.static intCONNECTION_FAILEDError code indicating the connection to the AVOSCloud servers failed.static intDUPLICATE_VALUEError code indicating that a unique field was given a value that is already taken.static intEMAIL_MISSINGError code indicating that the email is missing, but must be specified.static intEMAIL_NOT_FOUNDError code indicating that an user with the specified email was not found.static intEMAIL_TAKENError code indicating that the email has already been taken.static intEXCEEDED_QUOTAError code indicating that an application quota was exceeded.static intFILE_DELETE_ERRORError code indicating that deleting a file failed.static intFILE_DOWNLOAD_INCONSISTENT_FAILUREError code indicating the file checkSum value is not equals to original filestatic intFILE_UPLOAD_FAILUREError code indicating there is error whiling uploading AVFile.static intINCORRECT_TYPEError code indicating that a field was set to an inconsistent type.static intINTERNAL_SERVER_ERRORError code indicating that something has gone wrong with the server.static intINVALID_ACLError code indicating an invalid ACL was provided.static intINVALID_CHANNEL_NAMEError code indicating an invalid channel name.static intINVALID_CLASS_NAMEError code indicating a missing or invalid classname.static intINVALID_EMAIL_ADDRESSError code indicating that the email address was invalid.static intINVALID_FILE_NAMEError code indicating that an invalid filename was used for AVFile.static intINVALID_FILE_URLError code indicating that the file address was invalid.static intINVALID_JSONError code indicating that badly formed JSON was received upstream.static intINVALID_KEY_NAMEError code indicating an invalid key name.static intINVALID_LINKED_SESSIONError code indicating that an user with a linked (e.g.static intINVALID_NESTED_KEYError code indicating that an invalid key was used in a nested JSONObject.static intINVALID_PARAMETERstatic intINVALID_PHONE_NUMBER用来标识手机号码格式错误的错误代码static intINVALID_POINTERError code indicating a malformed pointer.static intINVALID_QUERYError code indicating you tried to query with a datatype that doesn't support it, like exact matching an array or object.static intINVALID_ROLE_NAMEError code indicating that a role's name is invalid.static intINVALID_STATEstatic intLINKED_ID_MISSINGError code indicating that an user cannot be linked to an account because that account's id could not be found.static intMISSING_OBJECT_IDError code indicating an unspecified object id.static intMUST_CREATE_USER_THROUGH_SIGNUPError code indicating that an user can only be created through signup.static intNOT_INITIALIZEDYou must call AVOSCloud.initialize before using the AVOSCloud library.static intOBJECT_NOT_FOUNDError code indicating the specified object doesn't exist.static intOBJECT_TOO_LARGEError code indicating that the object is too large.static intOPERATION_FORBIDDENError code indicating that the operation isn't allowed for clients.static intOTHER_CAUSEstatic intPASSWORD_MISSINGError code indicating that the password is missing or empty.static intPUSH_MISCONFIGUREDError code indicating that push is misconfigured.static intRATE_LIMITEDError code indicating client is rate limited by avoscloud server.static intSCRIPT_ERRORError code indicating that a Cloud Code script failed.static intSESSION_MISSINGError code indicating that an user object without a valid session could not be altered.static intTIMEOUTError code indicating that the request timed out on the server.static intUNKNOWNError code indicating unknown reason.static intUNSUPPORTED_SERVICEError code indicating that a service being linked (e.g.static intUSER_DOESNOT_EXISTError code indicating that user doesn't existstatic intUSER_ID_MISMATCHError code indicating that User ID mismatch.static intUSER_MOBILE_PHONENUMBER_TAKEN这个号码已经绑定过别的账号了static intUSER_MOBILEPHONE_MISSING用户并没有绑定手机号码static intUSER_MOBILEPHONE_NOT_VERIFIED这个手机号码尚未被验证过static intUSER_WITH_MOBILEPHONE_NOT_FOUND没有找到绑定了该手机号的用户static intUSERNAME_MISSINGError code indicating that the username is missing or empty.static intUSERNAME_PASSWORD_MISMATCHError code indicating that username and password mismatched.static intUSERNAME_TAKENError code indicating that the username has already been taken.static intVALIDATION_ERRORError 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.
-
-
-
字段详细资料
-
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.
-
-