public class LCException extends Exception
Modifier and Type | Field and Description |
---|---|
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 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.
|
Constructor and Description |
---|
LCException(int theCode,
String theMessage)
Construct a new LCException with a particular error code.
|
LCException(int theCode,
String theMessage,
int httpStatus)
Construct a new LCException with a particular error code.
|
LCException(String message,
Throwable cause)
Construct a new LCException with an external cause.
|
LCException(Throwable cause)
Construct a new LCException with an external cause.
|
Modifier and Type | Method and Description |
---|---|
int |
getCode()
Access the code for this error.
|
int |
getHttpStatus()
Access the http status code for this error.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
protected final int code
public static final int OTHER_CAUSE
public static final int INTERNAL_SERVER_ERROR
public static final int CONNECTION_FAILED
public static final int OBJECT_NOT_FOUND
public static final int INVALID_QUERY
public static final int INVALID_CLASS_NAME
public static final int MISSING_OBJECT_ID
public static final int INVALID_KEY_NAME
public static final int INVALID_POINTER
public static final int INVALID_JSON
public static final int COMMAND_UNAVAILABLE
public static final int NOT_INITIALIZED
public static final int INCORRECT_TYPE
public static final int INVALID_CHANNEL_NAME
public static final int PUSH_MISCONFIGURED
public static final int OBJECT_TOO_LARGE
public static final int OPERATION_FORBIDDEN
public static final int CACHE_MISS
public static final int INVALID_NESTED_KEY
public static final int INVALID_FILE_NAME
public static final int INVALID_ACL
public static final int TIMEOUT
public static final int INVALID_EMAIL_ADDRESS
public static final int INVALID_FILE_URL
public static final int INVALID_PHONE_NUMBER
public static final int DUPLICATE_VALUE
public static final int INVALID_ROLE_NAME
public static final int EXCEEDED_QUOTA
public static final int SCRIPT_ERROR
public static final int VALIDATION_ERROR
public static final int FILE_DELETE_ERROR
public static final int USERNAME_MISSING
public static final int PASSWORD_MISSING
public static final int USERNAME_TAKEN
public static final int EMAIL_TAKEN
public static final int EMAIL_MISSING
public static final int EMAIL_NOT_FOUND
public static final int SESSION_MISSING
public static final int MUST_CREATE_USER_THROUGH_SIGNUP
public static final int ACCOUNT_ALREADY_LINKED
public static final int USER_ID_MISMATCH
public static final int USERNAME_PASSWORD_MISMATCH
public static final int USER_DOESNOT_EXIST
public static final int USER_MOBILEPHONE_MISSING
public static final int USER_WITH_MOBILEPHONE_NOT_FOUND
public static final int USER_MOBILE_PHONENUMBER_TAKEN
public static final int USER_MOBILEPHONE_NOT_VERIFIED
public static final int LINKED_ID_MISSING
public static final int INVALID_LINKED_SESSION
public static final int UNSUPPORTED_SERVICE
public static final int RATE_LIMITED
public static final int UNKNOWN
public static final String CACHE_MISSING_ERROR
public static final int FILE_DOWNLOAD_INCONSISTENT_FAILURE
public static final int FILE_UPLOAD_FAILURE
public static final int INVALID_STATE
public static final int INVALID_PARAMETER
public static final int CIRCLE_REFERENCE
public LCException(int theCode, String theMessage)
theCode
- The error code to identify the type of exception.theMessage
- A message describing the error in more detail.public LCException(int theCode, String theMessage, int httpStatus)
theCode
- The error code to identify the type of exception.theMessage
- A message describing the error in more detail.httpStatus
- The http status code of the response.public LCException(String message, Throwable cause)
message
- A message describing the error in more detail.cause
- The cause of the error.public LCException(Throwable cause)
cause
- The cause of the error.Copyright © 2020, 美味书签(北京)信息技术有限公司 All rights reserved.