aboutsummaryrefslogblamecommitdiff
path: root/models/errors.go
blob: 9b514e9e304eb23f44a06250aae011dfd3cff185 (plain) (tree)
1
2
3
4
5
6
7
8







                                                                         



                                                                      
 
package models

import "errors"

var (
	ErrInvalidUserOrPassword = errors.New("invalid user or password")
	ErrUserAlreadyExists     = errors.New("user already exists")
	ErrInvalidPassword       = errors.New("invalid password")
	ErrTopicNotFound         = errors.New("topic not found")
	ErrPostNotFound          = errors.New("post not found")
	ErrUserNotFound          = errors.New("user not found")
	ErrDBNotInitialized      = errors.New("db is not initialized")
)