public class MesosferException
extends java.lang.Exception
MesosferData
, MesosferDataSchema
or
MesosferUser
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 Mesosfer server.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 |
BUCKET_DELETE_ERROR
Error code indicating that deleting a bucket failed.
|
static int |
CACHE_MISS
Error code indicating the result was not found in the cache.
|
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 Parse 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 a 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 |
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_APP_ID_OR_CLIENT_KEY
Error code indicating that application id or client key is invalid.
|
static int |
INVALID_CHANNEL_NAME
Error code indicating an invalid channel name.
|
static int |
INVALID_CLASS_OR_BUCKET_NAME
Error code indicating a missing or invalid class or bucket name.
|
static int |
INVALID_EMAIL_ADDRESS
Error code indicating that the email address was invalid.
|
static int |
INVALID_EVENT_NAME
Error code indicating that the provided event name is 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_NESTED_KEY
Error code indicating that an invalid key was used in a nested JSONObject.
|
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 |
MISSING_OBJECT_ID
Error code indicating an unspecified object id.
|
static int |
MUST_CREATE_USER_THROUGH_SIGNUP
Error code indicating that a user can only be created through signup.
|
static int |
NOT_INITIALIZED
You must call Mesosfer.initialize before using the Mesosfer library.
|
static int |
OBJECT_ALREADY_EXISTS
Error code indicating the specified object is already exist.
|
static int |
OBJECT_NOT_FOUND
Error code indicating the specified object doesn't exist.
|
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 |
REQUEST_LIMIT_EXCEEDED
Error code indicating that the application has exceeded its request limit.
|
static int |
SCRIPT_ERROR
Error code indicating that a Cloud Code script failed.
|
static int |
SESSION_MISSING
Error code indicating that a 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 |
USERNAME_MISSING
Error code indicating that the username is missing or empty.
|
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 |
---|
MesosferException(int theCode,
java.lang.String theMessage)
Construct a new MesosferException with a particular error code.
|
MesosferException(int theCode,
java.lang.String message,
java.lang.Throwable cause)
Construct a new MesosferException with an external cause.
|
MesosferException(java.lang.Throwable cause)
Construct a new MesosferException with an external cause.
|
Modifier and Type | Method and Description |
---|---|
int |
getCode()
Access the code for this error.
|
public static final int OTHER_CAUSE
public static final int INTERNAL_SERVER_ERROR
public static final int INVALID_APP_ID_OR_CLIENT_KEY
public static final int CONNECTION_FAILED
public static final int OBJECT_NOT_FOUND
public static final int OBJECT_ALREADY_EXISTS
public static final int INVALID_QUERY
public static final int INVALID_CLASS_OR_BUCKET_NAME
public static final int MISSING_OBJECT_ID
public static final int INVALID_KEY_NAME
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 OPERATION_FORBIDDEN
public static final int CACHE_MISS
public static final int INVALID_NESTED_KEY
public static final int INVALID_ACL
public static final int TIMEOUT
public static final int INVALID_EMAIL_ADDRESS
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 BUCKET_DELETE_ERROR
public static final int REQUEST_LIMIT_EXCEEDED
public static final int INVALID_EVENT_NAME
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 MesosferException(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 MesosferException(int theCode, java.lang.String message, java.lang.Throwable cause)
message
- A message describing the error in more detail.cause
- The cause of the error.public MesosferException(java.lang.Throwable cause)
cause
- The cause of the error.