public class SNSException
extends java.lang.Exception
A SNSException gets raised whenever a AVObject issues an invalid request, such as deleting or editing an object that no longer exists on the server, or when there is a network failure preventing communication with the AVOSCloud server.
限定符和类型 | 字段和说明 |
---|---|
static int |
NO_APP_KEY
Error code indicating that caller has not provided any app key.
|
static int |
OTHER_CAUSE |
static int |
USER_CANCEL
Error code indicating that user has cancelled the login.
|
构造器和说明 |
---|
SNSException(int theCode,
java.lang.String theMessage)
Construct a new SNSException with a particular error code.
|
SNSException(java.lang.String message,
java.lang.Throwable cause)
Construct a new SNSException with an external cause.
|
SNSException(java.lang.Throwable cause)
Construct a new SNSException with an external cause.
|
限定符和类型 | 方法和说明 |
---|---|
int |
getCode()
Access the code for this error.
|
static SNSException |
noAppKeyException() |
public static final int OTHER_CAUSE
public static final int USER_CANCEL
public static final int NO_APP_KEY
public SNSException(int theCode, java.lang.String theMessage)
theCode
- The error code to identify the type of exception.theMessage
- A message describing the error in more detail.public SNSException(java.lang.String message, java.lang.Throwable cause)
message
- A message describing the error in more detail.cause
- The cause of the error.public SNSException(java.lang.Throwable cause)
cause
- The cause of the error.public static SNSException noAppKeyException()
public int getCode()
Copyright © 2013 AVOS Systems Inc. All Rights Reserved.