FirebaseFirestore Framework Reference

_ErrorType

typealiasFirestoreErrorCode.Code._ErrorType=FirestoreErrorCode

Error codes used by Cloud Firestore.

  • The operation completed successfully.NSError objects will never have a code with thisvalue.

    Declaration

    Swift

    caseOK=0
  • The operation was cancelled (typically by the caller).

    Declaration

    Swift

    casecancelled=1
  • Unknown error or an error from a different error domain.

    Declaration

    Swift

    caseunknown=2
  • Client specified an invalid argument. Note that this differs from FailedPrecondition.InvalidArgument indicates arguments that are problematic regardless of the state of thesystem (e.g., an invalid field name).

    Declaration

    Swift

    caseinvalidArgument=3
  • Deadline expired before operation could complete. For operations that change the state of thesystem, this error may be returned even if the operation has completed successfully. Forexample, a successful response from a server could have been delayed long enough for thedeadline to expire.

    Declaration

    Swift

    casedeadlineExceeded=4
  • Some requested document was not found.

    Declaration

    Swift

    casenotFound=5
  • Some document that we attempted to create already exists.

    Declaration

    Swift

    casealreadyExists=6
  • The caller does not have permission to execute the specified operation.

    Declaration

    Swift

    casepermissionDenied=7
  • Some resource has been exhausted, perhaps a per-user quota, or perhaps the entire file systemis out of space.

    Declaration

    Swift

    caseresourceExhausted=8
  • Operation was rejected because the system is not in a state required for the operation’sexecution.

    Declaration

    Swift

    casefailedPrecondition=9
  • The operation was aborted, typically due to a concurrency issue like transaction aborts, etc.

    Declaration

    Swift

    caseaborted=10
  • Operation was attempted past the valid range.

    Declaration

    Swift

    caseoutOfRange=11
  • Operation is not implemented or not supported/enabled.

    Declaration

    Swift

    caseunimplemented=12
  • Internal errors. Means some invariants expected by underlying system has been broken. If yousee one of these errors, something is very broken.

    Declaration

    Swift

    case`internal`=13
  • The service is currently unavailable. This is a most likely a transient condition and may becorrected by retrying with a backoff.

    Declaration

    Swift

    caseunavailable=14
  • Unrecoverable data loss or corruption.

    Declaration

    Swift

    casedataLoss=15
  • The request does not have valid authentication credentials for the operation.

    Declaration

    Swift

    caseunauthenticated=16

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-03-11 UTC.