ParseException class

A ParseException gets raised whenever a ParseObject 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 Parse server.

Implemented types

Constructors

ParseException({int? code, required String message, dynamic data})
Construct a new ParseException with a particular error code.
const
ParseException.fromThrow(dynamic e)
Construct a new ParseException with an external cause.

Properties

code int
Access the code for this error.
final
data → dynamic
Access the data for this error
final
hashCode int
The hash code for this object.
no setterinherited
message String
Access the message for this error
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

accountAlreadyLinked → const int
Error code indicating that an an account being linked is already linked to another user.
cacheMiss → const int
Error code indicating the result was not found in the cache.
commandUnavailable → const int
Error code indicating that the feature you tried to access is only available internally for testing purposes.
connectionFailed → const int
Error code indicating the connection to the Parse servers failed.
duplicateValue → const int
Error code indicating that a unique field was given a value that is already taken.
emailMissing → const int
Error code indicating that the email is missing, but must be specified.
emailNotFound → const int
Error code indicating that a user with the specified email was not found.
emailTaken → const int
Error code indicating that the email has already been taken.
exceededQuota → const int
Error code indicating that an application quota was exceeded. Upgrade to resolve.
fileDeleteError → const int
Error code indicating that deleting a file failed.
incorrectType → const int
Error code indicating that a field was set to an inconsistent type.
invalidAcl → const int
Error code indicating an invalid ACL was provided.
invalidChannelName → const int
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.
invalidClassName → const int
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.
invalidEmailAddress → const int
Error code indicating that the email address was invalid.
invalidEventName → const int
Error code indicating that the provided event name is invalid.
invalidFileName → const int
Error code indicating that an invalid filename was used for ParseFile. A valid file name contains only a-zA-Z0-9_. characters and is between 1 and 128 characters.
invalidJson → const int
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.
invalidKeyName → const int
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.
invalidLinkedSession → const int
Error code indicating that a user with a linked (e.g. Facebook) account has an invalid session.
invalidNestedKey → const int
Error code indicating that an invalid key was used in a nested JSONObject.
invalidPointer → const int
Error code indicating a malformed pointer. You should not see this unless you have been mucking about changing internal Parse code.
invalidQuery → const int
Error code indicating you tried to query with a datatype that doesn't support it, like exact matching an array or object.
invalidRoleName → const int
Error code indicating that a role's name is invalid.
invalidSessionToken → const int
Error code indicating that the current session token is invalid.
linkedIdMissing → const int
Error code indicating that a user cannot be linked to an account because that account's id could not be found.
missingObjectId → const int
Error code indicating an unspecified object id.
missingRequiredFieldError → const int
Error code indicating that required field is missing.
mustCreateUserThroughSignUp → const int
Error code indicating that a user can only be created through signup.
notInitialized → const int
You must call Parse.initialize before using the Parse library.
objectNotFound → const int
Error code indicating the specified object doesn't exist.
objectTooLarge → const int
Error code indicating that the object is too large.
operationForbidden → const int
Error code indicating that the operation isn't allowed for clients.
otherCause → const int
Error code indicating another cause.
passwordMissing → const int
Error code indicating that the password is missing or empty.
pushMisconfigured → const int
Error code indicating that push is misconfigured.
requestLimitExceeded → const int
Error code indicating that the application has exceeded its request limit.
scriptError → const int
Error code indicating that a Cloud Code script failed.
sessionMissing → const int
Error code indicating that a user object without a valid session could not be altered.
timeout → const int
Error code indicating that the request timed out on the server. Typically this indicates that the request is too expensive to run.
unsupportedService → const int
Error code indicating that a service being linked (e.g. Facebook or Twitter) is unsupported.
usernameMissing → const int
Error code indicating that the username is missing or empty.
usernameTaken → const int
Error code indicating that the username has already been taken.
validationError → const int
Error code indicating that cloud code validation failed.