diff options
Diffstat (limited to 'object/store/errors.go')
| -rw-r--r-- | object/store/errors.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/object/store/errors.go b/object/store/errors.go new file mode 100644 index 00000000..3ee438f7 --- /dev/null +++ b/object/store/errors.go @@ -0,0 +1,12 @@ +package objectstore + +import "errors" + +// ErrObjectNotFound indicates that an object does not exist in a backend. +// This error MUST only be used in situations where the object store has +// no specified object ID, but no other unexpected conditions were +// encountered. In particular, it is not suitable for situations where one +// object references another (such as a tree referencing a blob) but +// the latter does not exist; these situations should use a separate +// error (TODO). +var ErrObjectNotFound = errors.New("objectstore: object not found") |
