Files
bifrost/framework/configstore/errors.go
Beyhan Oğur 880f412e2c first commit
2026-04-26 21:52:23 +03:00

20 lines
422 B
Go

package configstore
import (
"errors"
"fmt"
"strings"
)
var ErrNotFound = errors.New("not found")
var ErrAlreadyExists = errors.New("already exists")
// ErrUnresolvedKeys is returned when one or more keys could not be resolved
type ErrUnresolvedKeys struct {
Identifiers []string
}
func (e *ErrUnresolvedKeys) Error() string {
return fmt.Sprintf("could not resolve keys: %s", strings.Join(e.Identifiers, ", "))
}