oko-server/server/errors.go
zegkljan 38318ca654 basic server
* basic untested implementation of server
* updating data not implemented yet
2022-01-28 00:29:06 +01:00

14 lines
307 B
Go

package server
type ConstError string
func (e ConstError) Error() string {
return string(e)
}
const (
ErrUserNotExists = ConstError("user does not exist")
ErrUserAlreadyExists = ConstError("user already exists")
ErrAttemptedSystemUser = ConstError("attepted to associate with system user")
)