2023-05-06 12:49:40 +01:00
|
|
|
package db
|
|
|
|
|
|
|
|
import "fmt"
|
|
|
|
|
|
|
|
type bucketNotExistError struct {
|
|
|
|
bucket string
|
|
|
|
}
|
|
|
|
|
|
|
|
func (e bucketNotExistError) Error() string {
|
|
|
|
return fmt.Sprintf("bucket %s does not exist", e.bucket)
|
|
|
|
}
|
2024-01-23 18:31:01 +00:00
|
|
|
|
|
|
|
type itemListEmptyError struct{}
|
|
|
|
|
|
|
|
func (e itemListEmptyError) Error() string {
|
|
|
|
return "the list of items is empty."
|
|
|
|
}
|