Class FirestoreStalePositionException
Exception thrown when the Firestore CDC processor detects a stale position that cannot be recovered automatically.
public sealed class FirestoreStalePositionException : CdcStalePositionException, ISerializable
- Inheritance
-
FirestoreStalePositionException
- Implements
- Inherited Members
Remarks
This exception is thrown in the following scenarios:
- The recovery strategy is Throw
- The maximum recovery attempts have been exhausted
- The callback strategy throws or fails to provide a valid new position
The EventArgs property contains detailed information about the stale position, including the reason code, affected positions, and original exception.
Constructors
FirestoreStalePositionException()
Initializes a new instance of the FirestoreStalePositionException class.
public FirestoreStalePositionException()
FirestoreStalePositionException(CdcPositionResetEventArgs)
Initializes a new instance of the FirestoreStalePositionException class with the specified event arguments.
public FirestoreStalePositionException(CdcPositionResetEventArgs eventArgs)
Parameters
eventArgsCdcPositionResetEventArgsThe stale position event arguments.
FirestoreStalePositionException(string)
Initializes a new instance of the FirestoreStalePositionException class with a specified error message.
public FirestoreStalePositionException(string message)
Parameters
messagestringThe error message.
FirestoreStalePositionException(string, CdcPositionResetEventArgs)
Initializes a new instance of the FirestoreStalePositionException class with a custom message and event arguments.
public FirestoreStalePositionException(string message, CdcPositionResetEventArgs eventArgs)
Parameters
messagestringThe error message.
eventArgsCdcPositionResetEventArgsThe stale position event arguments.
FirestoreStalePositionException(string, Exception)
Initializes a new instance of the FirestoreStalePositionException class with a specified error message and inner exception.
public FirestoreStalePositionException(string message, Exception innerException)
Parameters
Properties
CollectionPath
Gets the collection path that was affected.
public string? CollectionPath { get; }
Property Value
DocumentId
Gets the document ID that was affected.
public string? DocumentId { get; }
Property Value
GrpcStatusCode
Gets the gRPC status code that indicated the stale position.
public int? GrpcStatusCode { get; }
Property Value
ProjectId
Gets the Firestore project ID that was affected.
public string? ProjectId { get; }