mirror of
https://github.com/Cernobor/oko-server.git
synced 2025-02-24 08:27:17 +00:00
14 lines
307 B
Go
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")
|
|
)
|