Files
gotes/internal/repository/repository_errors.go

13 lines
219 B
Go

package repository
type ErrNoOP struct{}
type ErrEmptyUpdate struct{}
func (e *ErrNoOP) Error() string {
return "no operation required"
}
func (e *ErrEmptyUpdate) Error() string {
return "update cannot be empty"
}