Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewError ¶
func NewError(code, message string) validation.Error
NewError creates a new validation error with the given code and message. The validation.NewError returns a struct implementing the validation.Error object, however that is not Comparable by errors.Is (see: https://github.com/golang/go/blob/master/src/errors/wrap.go#L49)
This makes any testcase checking for specific errors useless, but pointers are comparable.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.