in lib/src/datastore_impl.dart [277:296]
static Future<Never> _handleError(Object error, StackTrace stack) {
if (error is api.DetailedApiRequestError) {
if (error.status == 400) {
return Future.error(
datastore.ApplicationError(
error.message ?? 'An unknown error occured',
),
stack,
);
} else if (error.status == 409) {
// NOTE: This is reported as:
// "too much contention on these datastore entities"
// TODO:
return Future.error(datastore.TransactionAbortedError(), stack);
} else if (error.status == 412) {
return Future.error(datastore.NeedIndexError(), stack);
}
}
return Future.error(error, stack);
}