linstrom/storage/errors.go
mStar 575392d6d4 New storage error and role deletion function
New error is for indicating actions that are not ever allowed, even for
admins
And you can now delete roles
2024-11-07 10:45:02 +01:00

15 lines
418 B
Go

package storage
import "errors"
type ErrNotImplemented struct{}
func (n ErrNotImplemented) Error() string {
return "Not implemented yet"
}
var ErrEntryNotFound = errors.New("entry not found")
var ErrEntryAlreadyExists = errors.New("entry already exists")
var ErrNothingToChange = errors.New("nothing to change")
var ErrInvalidData = errors.New("invalid data")
var ErrNotAllowed = errors.New("action not allowed")