summaryrefslogtreecommitdiff
path: root/vendor/codeberg.org/gruf/go-storage/errors.go
blob: 1dd847011c5e741d589ba56b771f66a7ceafda07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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")
)