MCPcopy Create free account
hub / github.com/go-playground/validator / Error

Method Error

errors.go:26–32  ·  view source on GitHub ↗

Error returns InvalidValidationError message

()

Source from the content-addressed store, hash-verified

24
25// Error returns InvalidValidationError message
26func (e *InvalidValidationError) Error() string {
27 if e.Type == nil {
28 return "validator: (nil)"
29 }
30
31 return "validator: (nil " + e.Type.String() + ")"
32}
33
34// ValidationErrors is an array of FieldError's
35// for use in custom error messages post validation.

Callers

nothing calls this directly

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected