java.lang.Object | ||
↳ | java.lang.Enum<com.google.firebase.firestore.FirebaseFirestoreException.Code> | |
↳ | com.google.firebase.firestore.FirebaseFirestoreException.Code |
The set of Firestore status codes. The codes are the same at the ones exposed by gRPC here: https://github.com/grpc/grpc/blob/master/doc/statuscodes.md
Enum Values | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
FirebaseFirestoreException.Code | ABORTED | The operation was aborted, typically due to a concurrency issue like transaction aborts, etc. | |||||||||
FirebaseFirestoreException.Code | ALREADY_EXISTS | Some document that we attempted to create already exists. | |||||||||
FirebaseFirestoreException.Code | CANCELLED | The operation was cancelled (typically by the caller). | |||||||||
FirebaseFirestoreException.Code | DATA_LOSS | Unrecoverable data loss or corruption. | |||||||||
FirebaseFirestoreException.Code | DEADLINE_EXCEEDED | Deadline expired before operation could complete. | |||||||||
FirebaseFirestoreException.Code | FAILED_PRECONDITION | Operation was rejected because the system is not in a state required for the operation's execution. | |||||||||
FirebaseFirestoreException.Code | INTERNAL | Internal errors. | |||||||||
FirebaseFirestoreException.Code | INVALID_ARGUMENT | Client specified an invalid argument. | |||||||||
FirebaseFirestoreException.Code | NOT_FOUND | Some requested document was not found. | |||||||||
FirebaseFirestoreException.Code | OK | The operation completed successfully. | |||||||||
FirebaseFirestoreException.Code | OUT_OF_RANGE | Operation was attempted past the valid range. | |||||||||
FirebaseFirestoreException.Code | PERMISSION_DENIED | The caller does not have permission to execute the specified operation. | |||||||||
FirebaseFirestoreException.Code | RESOURCE_EXHAUSTED | Some resource has been exhausted, perhaps a per-user quota, or perhaps the entire file system is out of space. | |||||||||
FirebaseFirestoreException.Code | UNAUTHENTICATED | The request does not have valid authentication credentials for the operation. | |||||||||
FirebaseFirestoreException.Code | UNAVAILABLE | The service is currently unavailable. | |||||||||
FirebaseFirestoreException.Code | UNIMPLEMENTED | Operation is not implemented or not supported/enabled. | |||||||||
FirebaseFirestoreException.Code | UNKNOWN | Unknown error or an error from a different error domain. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
The numerical value of the code.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
The operation was aborted, typically due to a concurrency issue like transaction aborts, etc.
Some document that we attempted to create already exists.
The operation was cancelled (typically by the caller).
Unrecoverable data loss or corruption.
Deadline expired before operation could complete. For operations that change the state of the system, this error may be returned even if the operation has completed successfully. For example, a successful response from a server could have been delayed long enough for the deadline to expire.
Operation was rejected because the system is not in a state required for the operation's execution.
Internal errors. Means some invariants expected by underlying system has been broken. If you see one of these errors, something is very broken.
Client specified an invalid argument. Note that this differs from FAILED_PRECONDITION. INVALID_ARGUMENT indicates arguments that are problematic regardless of the state of the system (e.g., an invalid field name).
Some requested document was not found.
The operation completed successfully. FirebaseFirestoreException will never have a status of OK.
Operation was attempted past the valid range.
The caller does not have permission to execute the specified operation.
Some resource has been exhausted, perhaps a per-user quota, or perhaps the entire file system is out of space.
The request does not have valid authentication credentials for the operation.
The service is currently unavailable. This is a most likely a transient condition and may be corrected by retrying with a backoff.
Operation is not implemented or not supported/enabled.
Unknown error or an error from a different error domain.
Parameters | |
---|---|
value |
int |
Returns | |
---|---|
FirebaseFirestoreException.Code |
The numerical value of the code.
Returns | |
---|---|
int |
Parameters | |
---|---|
name |
String |
Returns | |
---|---|
FirebaseFirestoreException.Code |