aboutsummaryrefslogtreecommitdiff
path: root/object/store/errors.go
diff options
context:
space:
mode:
Diffstat (limited to 'object/store/errors.go')
-rw-r--r--object/store/errors.go15
1 files changed, 12 insertions, 3 deletions
diff --git a/object/store/errors.go b/object/store/errors.go
index 12bb8b28..74da4df1 100644
--- a/object/store/errors.go
+++ b/object/store/errors.go
@@ -2,7 +2,16 @@ package store
import "errors"
-// ErrObjectNotFound indicates that an object does not exist in a backend.
-// This error must only be produced by object stores, when it has no
-// specified object ID, but no other unexpected conditions were encountered.
+// ErrObjectNotFound indicates that
+// an object does not exist in a backend.
+// This error must only be produced by object stores,
+// when it has no specified object ID,
+// but no other unexpected conditions were encountered.
var ErrObjectNotFound = errors.New("objectstore: object not found")
+
+// This is a sentinel with no details,
+// because it could be a frequent occurence,
+// and allocating frequently on expected error paths
+// would be extremely harmful to performance.
+// Sometime, I will audit this again.
+// TODO \ No newline at end of file