FirestoreClientErrorCode enum

Firestore client error codes and their default messages.

Inheritance
Available extensions

Values

aborted → const FirestoreClientErrorCode
const FirestoreClientErrorCode(statusCode: StatusCode.aborted, code: 'aborted', message: 'The operation was aborted, typically due to a concurrency issue like transaction aborts, etc.'…
alreadyExists → const FirestoreClientErrorCode
const FirestoreClientErrorCode(statusCode: StatusCode.alreadyExists, code: 'already-exists', message: 'Some document that we attempted to create already exists.')
cancelled → const FirestoreClientErrorCode
const FirestoreClientErrorCode(statusCode: StatusCode.cancelled, code: 'cancelled', message: 'The operation was cancelled (typically by the caller).')
dataLoss → const FirestoreClientErrorCode
const FirestoreClientErrorCode(statusCode: StatusCode.dataLoss, code: 'data-loss', message: 'Unrecoverable data loss or corruption.')
deadlineExceeded → const FirestoreClientErrorCode
const FirestoreClientErrorCode(statusCode: StatusCode.deadlineExceeded, code: 'deadline_exceeded', message: 'Deadline expired before operation could complete.')
failedPrecondition → const FirestoreClientErrorCode
const FirestoreClientErrorCode(statusCode: StatusCode.failedPrecondition, code: 'failed_precondition', message: "Operation was rejected because the system is not in a state required for t…
internal → const FirestoreClientErrorCode
const FirestoreClientErrorCode(statusCode: StatusCode.internal, code: 'internal', message: 'Internal errors.')
invalidArgument → const FirestoreClientErrorCode
const FirestoreClientErrorCode(statusCode: StatusCode.invalidArgument, code: 'invalid_argument', message: 'Client specified an invalid argument.')
notFound → const FirestoreClientErrorCode
const FirestoreClientErrorCode(statusCode: StatusCode.notFound, code: 'not_found', message: 'Some requested document was not found.')
ok → const FirestoreClientErrorCode
const FirestoreClientErrorCode(statusCode: StatusCode.ok, code: 'ok', message: 'The operation completed successfully.')
outOfRange → const FirestoreClientErrorCode
const FirestoreClientErrorCode(statusCode: StatusCode.outOfRange, code: 'out_of_range', message: 'Operation was attempted past the valid range.')
permissionDenied → const FirestoreClientErrorCode
const FirestoreClientErrorCode(statusCode: StatusCode.permissionDenied, code: 'permission_denied', message: 'The caller does not have permission to execute the specified operation.')
resourceExhausted → const FirestoreClientErrorCode
const FirestoreClientErrorCode(statusCode: StatusCode.resourceExhausted, code: 'resource_exhausted', message: 'Some resource has been exhausted, perhaps a per-user quota, or perhaps the en…
unauthenticated → const FirestoreClientErrorCode
const FirestoreClientErrorCode(statusCode: StatusCode.unauthenticated, code: 'unauthenticated', message: 'The request does not have valid authentication credentials for the operation.'…
unavailable → const FirestoreClientErrorCode
const FirestoreClientErrorCode(statusCode: StatusCode.unavailable, code: 'unavailable', message: 'The service is currently unavailable.')
unimplemented → const FirestoreClientErrorCode
const FirestoreClientErrorCode(statusCode: StatusCode.unimplemented, code: 'unimplemented', message: 'Operation is not implemented or not supported/enabled.')
unknown → const FirestoreClientErrorCode
const FirestoreClientErrorCode(statusCode: StatusCode.unknown, code: 'unknown', message: 'Unknown error or an error from a different error domain.')

Properties

code → String
final
hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
message → String
final
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
statusCode → StatusCode
final

Methods

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

Operators

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

Constants

values → const List<FirestoreClientErrorCode>
A constant List of the values in this enum, in order of their declaration.