blob: 65235679ccc12fee7053589d0370686097e35d43 [file] [edit]
// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:test/test.dart';
import 'package:appengine/src/errors.dart';
import 'package:gcloud/datastore.dart' as datastore;
const isNetworkError = TypeMatcher<NetworkException>();
const isProtocolError = TypeMatcher<ProtocolException>();
const isServiceError = TypeMatcher<ServiceException>();
const isApplicationError = TypeMatcher<AppEngineException>();
const isAppEngineApplicationError = TypeMatcher<ApplicationException>();
const isDatastoreApplicationError = TypeMatcher<datastore.ApplicationError>();
const isTransactionAbortedError =
TypeMatcher<datastore.TransactionAbortedError>();
const isNeedIndexError = TypeMatcher<datastore.NeedIndexError>();
const isTimeoutError = TypeMatcher<datastore.TimeoutError>();
const isInt = TypeMatcher<int>();