We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 474dbbd commit 7a25581Copy full SHA for 7a25581
packages/googleapis_firestore/lib/src/transaction.dart
@@ -122,7 +122,10 @@ class Transaction {
122
/// ```
123
Future<QuerySnapshot<T>> getQuery<T>(Query<T> query) async {
124
if (_writeBatch != null && _writeBatch._operations.isNotEmpty) {
125
- throw Exception(readAfterWriteErrorMsg);
+ throw FirestoreException(
126
+ FirestoreClientErrorCode.failedPrecondition,
127
+ readAfterWriteErrorMsg,
128
+ );
129
}
130
return _withLazyStartedTransaction<Query<T>, QuerySnapshot<T>>(
131
query,
0 commit comments