pelican/internal/db/errors.go

18 lines
304 B
Go
Raw Normal View History

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)
}
type itemListEmptyError struct{}
func (e itemListEmptyError) Error() string {
return "the list of items is empty."
}