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

Unified Diff: service/memcache/errors.go

Issue 1243323002: Refactor a bit. (Closed) Base URL: https://github.com/luci/gae.git@master
Patch Set: fix golint 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
« no previous file with comments | « service/memcache/context.go ('k') | service/memcache/interface.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: service/memcache/errors.go
diff --git a/service/memcache/errors.go b/service/memcache/errors.go
new file mode 100644
index 0000000000000000000000000000000000000000..d102f4252573d769aa9a3d90e5f6a2ea74e72389
--- /dev/null
+++ b/service/memcache/errors.go
@@ -0,0 +1,23 @@
+// 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.
+
+// This file contains errors which are mirrors/duplicates of the
+// upstream SDK errors. This exists so that users can depend solely on this
+// wrapper library without also needing to import the SDK.
+
+package memcache
+
+import (
+ orig "google.golang.org/appengine/memcache"
+)
+
+// These are pass-through versions from the managed-VM SDK. All implementations
+// must return these (exact) errors (not just an error with the same text).
+var (
+ ErrCacheMiss = orig.ErrCacheMiss
+ ErrCASConflict = orig.ErrCASConflict
+ ErrNoStats = orig.ErrNoStats
+ ErrNotStored = orig.ErrNotStored
+ ErrServerError = orig.ErrServerError
+)
« no previous file with comments | « service/memcache/context.go ('k') | service/memcache/interface.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698