Files
mtusi2026lab7/src/backend/services/errors.go
T

19 lines
419 B
Go

package services
import "errors"
var (
ErrConflict = errors.New("conflict")
ErrUnknownUser = errors.New("unknown user")
ErrChatNotFound = errors.New("chat not found")
ErrInvalidSession = errors.New("invalid session")
)
type InvalidInput struct {
Message string
}
func (e InvalidInput) Error() string { return e.Message }
var ErrPasswordBusy = errors.New("password verification capacity exhausted")