Class ProjectionErrorContext
- Namespace
- Excalibur.Data.ElasticSearch.Projections
- Assembly
- Excalibur.Data.ElasticSearch.dll
Provides context information about a projection operation error.
public sealed class ProjectionErrorContext
- Inheritance
-
ProjectionErrorContext
- Inherited Members
Properties
AttemptCount
Gets the number of retry attempts made.
public int AttemptCount { get; init; }
Property Value
- int
The number of retry attempts made.
Document
Gets the document that failed to be projected.
public object? Document { get; init; }
Property Value
- object
The document that failed to be projected.
DocumentId
Gets the identifier of the document, if available.
public string? DocumentId { get; init; }
Property Value
- string
The identifier of the document, if available.
Exception
Gets the exception that caused the failure.
public required Exception Exception { get; init; }
Property Value
- Exception
The exception that caused the failure.
IndexName
Gets the index name where the projection was being stored.
public required string IndexName { get; init; }
Property Value
- string
The index name where the projection was being stored.
Metadata
Gets additional context metadata.
public IDictionary<string, object>? Metadata { get; init; }
Property Value
- IDictionary<string, object>
Additional context metadata.
OperationType
Gets the operation type that failed (e.g., "Index", "Update", "Delete").
public required string OperationType { get; init; }
Property Value
- string
The operation type that failed (e.g., "Index", "Update", "Delete").
ProjectionType
Gets the type of projection that failed.
public required string ProjectionType { get; init; }
Property Value
- string
The type of projection that failed.