-
Notifications
You must be signed in to change notification settings - Fork 124
/
Copy patherrors.go
14 lines (12 loc) · 829 Bytes
/
errors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package govalidator
import "errors"
var (
errStringToInt = errors.New("govalidator: unable to parse string to integer")
errStringToFloat = errors.New("govalidator: unable to parse string to float")
errRequireRules = errors.New("govalidator: provide at least rules for Validate* method")
errValidateArgsMismatch = errors.New("govalidator: provide at least *http.Request and rules for Validate method")
errInvalidArgument = errors.New("govalidator: invalid number of argument")
errRequirePtr = errors.New("govalidator: provide pointer to the data structure")
errRequireData = errors.New("govalidator: provide non-nil data structure for ValidateStruct method")
errRequestNotAccepted = errors.New("govalidator: cannot provide an *http.Request for ValidateStruct method")
)