Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3518)

Unified Diff: go/src/infra/gae/libs/wrapper/gae/commonErrors/errors.go

Issue 1222903002: Refactor current GAE abstraction library to be free of the SDK* (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: more fixes Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: go/src/infra/gae/libs/wrapper/gae/commonErrors/errors.go
diff --git a/go/src/infra/gae/libs/wrapper/gae/commonErrors/errors.go b/go/src/infra/gae/libs/wrapper/gae/commonErrors/errors.go
deleted file mode 100644
index 780787e37e15b094475f9b9e82bd9facfcca1c09..0000000000000000000000000000000000000000
--- a/go/src/infra/gae/libs/wrapper/gae/commonErrors/errors.go
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-package commonErrors
-
-import (
- "reflect"
-
- "appengine/datastore"
- "appengine/memcache"
- "appengine/taskqueue"
-)
-
-// Common errors originating from the GAE SDK
-var (
- ErrCASConflictMC = memcache.ErrCASConflict
- ErrNoStatsMC = memcache.ErrNoStats
- ErrCacheMissMC = memcache.ErrCacheMiss
- ErrNotStoredMC = memcache.ErrNotStored
- ErrServerErrorMC = memcache.ErrServerError
-
- ErrInvalidKeyDS = datastore.ErrInvalidKey
- ErrConcurrentTransactionDS = datastore.ErrConcurrentTransaction
- ErrNoSuchEntityDS = datastore.ErrNoSuchEntity
- ErrInvalidEntityTypeDS = datastore.ErrInvalidEntityType
-
- ErrTaskAlreadyAddedTQ = taskqueue.ErrTaskAlreadyAdded
-)
-
-// TODO(riannucci): Add common internal errors which originate from the
-// dev_appserver SDK
-
-// ErrFieldMismatchDS returns a datastore.ErrFieldMismatch struct filled with
-// the given specification
-func ErrFieldMismatchDS(structType reflect.Type, fieldName, reason string) error {
- return &datastore.ErrFieldMismatch{
- StructType: structType,
- FieldName: fieldName,
- Reason: reason,
- }
-}

Powered by Google App Engine
This is Rietveld 408576698