store: add new ErrNotConnected error
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
		| @@ -7,6 +7,8 @@ import ( | |||||||
| ) | ) | ||||||
|  |  | ||||||
| var ( | var ( | ||||||
|  | 	// ErrNotConnected is returned when a store is not connected | ||||||
|  | 	ErrNotConnected = errors.New("not conected") | ||||||
| 	// ErrNotFound is returned when a key doesn't exist | 	// ErrNotFound is returned when a key doesn't exist | ||||||
| 	ErrNotFound = errors.New("not found") | 	ErrNotFound = errors.New("not found") | ||||||
| 	// ErrInvalidKey is returned when a key has empty or have invalid format | 	// ErrInvalidKey is returned when a key has empty or have invalid format | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user