public static void ThrowInvalidTombstoneType(Tombstone.TombstoneType expectedType, Tombstone.TombstoneType actualType)
 {
     throw new InvalidOperationException($"When collection is specified, tombstone must be of type '{expectedType}', but got '{actualType}'");
 }
 public FilterTombstonesEnumerator(IEnumerator <Tombstone> tombstones, EtlStatsScope stats, Tombstone.TombstoneType tombstoneType, DocumentsOperationContext context,
                                   List <string> fromCollections = null, long?maxEtag = null)
 {
     _tombstones      = tombstones;
     _stats           = stats;
     _tombstoneType   = tombstoneType;
     _context         = context;
     _fromCollections = fromCollections;
     _maxEtag         = maxEtag;
 }
 private static void ThrowMaxEtagLimitNotSupported(Tombstone.TombstoneType tombstoneType)
 {
     throw new NotSupportedException($"Limiting tombstones to iterate up to max etag isn't supported for tombstones of type: {tombstoneType}");
 }
 private static void ThrowFilteringTombstonesOfTypeNotSupported(Tombstone.TombstoneType tombstoneType)
 {
     throw new NotSupportedException($"Filtering tombstones of type: {tombstoneType} is not supported");
 }
 private static void ThrowUnexpectedNullCollectionTombstone(Tombstone.TombstoneType tombstoneType)
 {
     throw new NotSupportedException($"Unexpected 'null' collection of {tombstoneType} tombstone while filtering by collection is specified");
 }