github.com/crowdsecurity/crowdsec@v1.6.1/pkg/database/errors.go (about) 1 package database 2 3 import "errors" 4 5 var ( 6 UserExists = errors.New("user already exist") 7 UserNotExists = errors.New("user doesn't exist") 8 HashError = errors.New("unable to hash") 9 InsertFail = errors.New("unable to insert row") 10 QueryFail = errors.New("unable to query") 11 UpdateFail = errors.New("unable to update") 12 DeleteFail = errors.New("unable to delete") 13 ItemNotFound = errors.New("object not found") 14 ParseTimeFail = errors.New("unable to parse time") 15 ParseDurationFail = errors.New("unable to parse duration") 16 MarshalFail = errors.New("unable to marshal") 17 UnmarshalFail = errors.New("unable to unmarshal") 18 BulkError = errors.New("unable to insert bulk") 19 ParseType = errors.New("unable to parse type") 20 InvalidIPOrRange = errors.New("invalid ip address / range") 21 InvalidFilter = errors.New("invalid filter") 22 )