summaryrefslogtreecommitdiff
path: root/vendor/codeberg.org/gruf/go-storage/errors.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/codeberg.org/gruf/go-storage/errors.go')
-rw-r--r--vendor/codeberg.org/gruf/go-storage/errors.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/vendor/codeberg.org/gruf/go-storage/errors.go b/vendor/codeberg.org/gruf/go-storage/errors.go
new file mode 100644
index 000000000..1dd847011
--- /dev/null
+++ b/vendor/codeberg.org/gruf/go-storage/errors.go
@@ -0,0 +1,16 @@
+package storage
+
+import (
+ "errors"
+)
+
+var (
+ // ErrNotFound is the error returned when a key cannot be found in storage
+ ErrNotFound = errors.New("storage: key not found")
+
+ // ErrAlreadyExist is the error returned when a key already exists in storage
+ ErrAlreadyExists = errors.New("storage: key already exists")
+
+ // ErrInvalidkey is the error returned when an invalid key is passed to storage
+ ErrInvalidKey = errors.New("storage: invalid key")
+)