first commit
This commit is contained in:
19
framework/configstore/errors.go
Normal file
19
framework/configstore/errors.go
Normal file
@@ -0,0 +1,19 @@
|
||||
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, ", "))
|
||||
}
|
||||
Reference in New Issue
Block a user