KErrorCodes class
Constants for Firestore error codes and messages.
This file contains all error codes and default error messages used throughout the Turbo Firestore API for consistent error handling.
These constants ensure consistent error handling and reporting across the entire API, making it easier to maintain and update error messages in a single place.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- alreadyExists → const String
- Error code for document already exists errors.
- alreadyExistsMessage → const String
- Default error message for document already exists errors.
- batchOperationErrorPrefix → const String
- Prefix for error messages related to batch operations.
- cancelled → const String
- Error code for cancelled operation errors.
- cancelledMessage → const String
- Default error message for cancelled operation errors.
- collectionErrorPrefix → const String
- Prefix for error messages related to collection operations.
- dataLoss → const String
- Error code for data loss errors.
- dataLossMessage → const String
- Default error message for data loss errors.
- deadlineExceeded → const String
- Error code for deadline exceeded errors.
- deadlineExceededMessage → const String
- Default error message for deadline exceeded errors.
- documentErrorPrefix → const String
- Prefix for error messages related to document operations.
- failedPrecondition → const String
- Error code for failed precondition errors.
- failedPreconditionMessage → const String
- Default error message for failed precondition errors.
- internal → const String
- Error code for internal errors.
- internalMessage → const String
- Default error message for internal errors.
- invalidArgument → const String
- Error code for invalid argument errors.
- invalidArgumentMessage → const String
- Default error message for invalid argument errors.
- notFound → const String
- Error code for document not found errors.
- notFoundMessage → const String
- Default error message for document not found errors.
- outOfRange → const String
- Error code for out of range errors.
- outOfRangeMessage → const String
- Default error message for out of range errors.
- permissionDenied → const String
- Error code for permission denied errors.
- permissionDeniedMessage → const String
- Default error message for permission denied errors.
- queryErrorPrefix → const String
- Prefix for error messages related to query operations.
- resourceExhausted → const String
- Error code for resource exhausted errors.
- resourceExhaustedMessage → const String
- Default error message for resource exhausted errors.
- streamErrorPrefix → const String
- Prefix for error messages related to streaming.
- transactionErrorPrefix → const String
- Prefix for error messages related to transaction operations.
- unauthenticated → const String
- Error code for unauthenticated errors.
- unauthenticatedMessage → const String
- Default error message for unauthenticated errors.
- Error code for service unavailable errors.
- Default error message for service unavailable errors.
- unimplemented → const String
- Error code for unimplemented errors.
- unimplementedMessage → const String
- Default error message for unimplemented errors.
- unknown → const String
- Error code for unknown errors.
- unknownMessage → const String
- Default error message for unknown errors.