mStar
575392d6d4
New error is for indicating actions that are not ever allowed, even for admins And you can now delete roles
15 lines
418 B
Go
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")
|