Initial commit, valiwork as framework is ready to use.
This commit is contained in:
17
errors.go
Normal file
17
errors.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package valiwork
|
||||
|
||||
import (
|
||||
// stdlib
|
||||
"errors"
|
||||
)
|
||||
|
||||
var (
|
||||
// ErrValidatorAlreadyRegistered appears when validator's name
|
||||
// passed to RegisterValidator function already used for other
|
||||
// validator function.
|
||||
ErrValidatorAlreadyRegistered = errors.New("validator with such name already registered")
|
||||
|
||||
// ErrValidatorNotRegistered appears when trying to unregister
|
||||
// not registered validator function.
|
||||
ErrValidatorNotRegistered = errors.New("validator with such name wasn't registered")
|
||||
)
|
Reference in New Issue
Block a user