pub enum FirestoreError {
SystemError(FirestoreSystemError),
DatabaseError(FirestoreDatabaseError),
DataConflictError(FirestoreDataConflictError),
DataNotFoundError(FirestoreDataNotFoundError),
InvalidParametersError(FirestoreInvalidParametersError),
SerializeError(FirestoreSerializationError),
DeserializeError(FirestoreSerializationError),
NetworkError(FirestoreNetworkError),
ErrorInTransaction(FirestoreErrorInTransaction),
CacheError(FirestoreCacheError),
}
Expand description
The main error type for all Firestore operations.
This enum consolidates various specific error types that can occur during interactions with Google Firestore.
Variants§
SystemError(FirestoreSystemError)
An error originating from the underlying system or a dependency, not directly from a Firestore API interaction. This could include issues with the gRPC client, I/O errors, etc.
DatabaseError(FirestoreDatabaseError)
A general error reported by the Firestore database. This often wraps errors returned by the Firestore gRPC API.
DataConflictError(FirestoreDataConflictError)
An error indicating a data conflict, such as trying to create a document that already exists, or an optimistic locking failure.
DataNotFoundError(FirestoreDataNotFoundError)
An error indicating that the requested data (e.g., a document or collection) was not found.
InvalidParametersError(FirestoreInvalidParametersError)
An error due to invalid parameters provided by the client for an operation.
SerializeError(FirestoreSerializationError)
An error that occurred during the serialization of data to be sent to Firestore.
DeserializeError(FirestoreSerializationError)
An error that occurred during the deserialization of data received from Firestore.
NetworkError(FirestoreNetworkError)
An error related to network connectivity or communication with the Firestore service.
ErrorInTransaction(FirestoreErrorInTransaction)
An error that occurred specifically within the context of a Firestore transaction.
CacheError(FirestoreCacheError)
An error related to the caching layer, if enabled and used.
Trait Implementations§
Source§impl Debug for FirestoreError
impl Debug for FirestoreError
Source§impl Display for FirestoreError
impl Display for FirestoreError
Source§impl Error for FirestoreError
impl Error for FirestoreError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl Error for FirestoreError
impl Error for FirestoreError
Source§impl Error for FirestoreError
impl Error for FirestoreError
Source§fn custom<T>(msg: T) -> Selfwhere
T: Display,
fn custom<T>(msg: T) -> Selfwhere
T: Display,
Source§fn invalid_type(unexp: Unexpected<'_>, exp: &dyn Expected) -> Self
fn invalid_type(unexp: Unexpected<'_>, exp: &dyn Expected) -> Self
Deserialize
receives a type different from what it was
expecting. Read moreSource§fn invalid_value(unexp: Unexpected<'_>, exp: &dyn Expected) -> Self
fn invalid_value(unexp: Unexpected<'_>, exp: &dyn Expected) -> Self
Deserialize
receives a value of the right type but that
is wrong for some other reason. Read moreSource§fn invalid_length(len: usize, exp: &dyn Expected) -> Self
fn invalid_length(len: usize, exp: &dyn Expected) -> Self
Source§fn unknown_variant(variant: &str, expected: &'static [&'static str]) -> Self
fn unknown_variant(variant: &str, expected: &'static [&'static str]) -> Self
Deserialize
enum type received a variant with an
unrecognized name.Source§fn unknown_field(field: &str, expected: &'static [&'static str]) -> Self
fn unknown_field(field: &str, expected: &'static [&'static str]) -> Self
Deserialize
struct type received a field with an
unrecognized name.Source§fn missing_field(field: &'static str) -> Self
fn missing_field(field: &'static str) -> Self
Deserialize
struct type expected to receive a required
field with a particular name but that field was not present in the
input.Source§fn duplicate_field(field: &'static str) -> Self
fn duplicate_field(field: &'static str) -> Self
Deserialize
struct type received more than one of the
same field.Source§impl From<Error> for FirestoreError
impl From<Error> for FirestoreError
Source§impl From<Error> for FirestoreError
impl From<Error> for FirestoreError
Source§impl From<OutOfRangeError> for FirestoreError
impl From<OutOfRangeError> for FirestoreError
Source§fn from(out_of_range: OutOfRangeError) -> Self
fn from(out_of_range: OutOfRangeError) -> Self
Source§impl From<ParseError> for FirestoreError
impl From<ParseError> for FirestoreError
Source§fn from(parse_err: ParseError) -> Self
fn from(parse_err: ParseError) -> Self
Source§impl From<SendError<WriteRequest>> for FirestoreError
impl From<SendError<WriteRequest>> for FirestoreError
Source§fn from(send_error: SendError<WriteRequest>) -> Self
fn from(send_error: SendError<WriteRequest>) -> Self
Auto Trait Implementations§
impl Freeze for FirestoreError
impl !RefUnwindSafe for FirestoreError
impl Send for FirestoreError
impl Sync for FirestoreError
impl Unpin for FirestoreError
impl !UnwindSafe for FirestoreError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.