@@ -25,7 +25,7 @@ namespace firestore {
2525
2626using model::DocumentKey;
2727using model::ResourcePath;
28- using util::ThrowInvalidArgument ;
28+ using util::ThrowInvalidArgumentIos ;
2929
3030QueryInternal::QueryInternal (api::Query&& query)
3131 : query_{std::move (query)},
@@ -124,7 +124,7 @@ bool operator==(const QueryInternal& lhs, const QueryInternal& rhs) {
124124core::Bound QueryInternal::ToBound (
125125 BoundPosition bound_pos, const DocumentSnapshot& public_snapshot) const {
126126 if (!public_snapshot.exists ()) {
127- ThrowInvalidArgument (
127+ ThrowInvalidArgumentIos (
128128 " Invalid query. You are trying to start or end a query using a "
129129 " document that doesn't exist." );
130130 }
@@ -163,7 +163,7 @@ core::Bound QueryInternal::ToBound(
163163 " query using a document for which the field '" ) +
164164 field_path.CanonicalString () +
165165 " ' (used as the order by) does not exist." ;
166- ThrowInvalidArgument (message.c_str ());
166+ ThrowInvalidArgumentIos (message.c_str ());
167167 }
168168
169169 if (value->type () == model::FieldValue::Type::ServerTimestamp) {
@@ -181,7 +181,7 @@ core::Bound QueryInternal::ToBound(
181181 field_path.CanonicalString () +
182182 " ' is an uncommitted server timestamp. (Since the value of this"
183183 " field is unknown, you cannot start/end a query with it.)" ;
184- ThrowInvalidArgument (message.c_str ());
184+ ThrowInvalidArgumentIos (message.c_str ());
185185 }
186186
187187 components.push_back (std::move (value).value ());
@@ -199,7 +199,7 @@ core::Bound QueryInternal::ToBound(
199199 internal_query.explicit_order_bys ();
200200
201201 if (field_values.size () > explicit_order_bys.size ()) {
202- ThrowInvalidArgument (
202+ ThrowInvalidArgumentIos (
203203 " Invalid query. You are trying to start or end a query using more "
204204 " values than were specified in the order by." );
205205 }
@@ -223,7 +223,7 @@ core::Bound QueryInternal::ToBound(
223223model::FieldValue QueryInternal::ConvertDocumentId (
224224 const model::FieldValue& from, const core::Query& internal_query) const {
225225 if (from.type () != model::FieldValue::Type::String) {
226- ThrowInvalidArgument (
226+ ThrowInvalidArgumentIos (
227227 " Invalid query. Expected a string for the document ID." );
228228 }
229229 const std::string& document_id = from.string_value ();
@@ -240,7 +240,7 @@ model::FieldValue QueryInternal::ConvertDocumentId(
240240 " by document "
241241 " ID, you must pass a plain document ID, but '" ) +
242242 document_id + " ' contains a slash." ;
243- ThrowInvalidArgument (message.c_str ());
243+ ThrowInvalidArgumentIos (message.c_str ());
244244 }
245245
246246 ResourcePath path =
@@ -259,7 +259,7 @@ model::FieldValue QueryInternal::ConvertDocumentId(
259259 " document path, but '" ) +
260260 path.CanonicalString () +
261261 " ' is not because it contains an odd number of segments." ;
262- ThrowInvalidArgument (message.c_str ());
262+ ThrowInvalidArgumentIos (message.c_str ());
263263 }
264264
265265 const model::DatabaseId& database_id = firestore_internal ()->database_id ();
0 commit comments