View definition

func NewValidationError

Defined in


NewValidationError returns a new validation error with the specified id and text. The id's purpose is to distinguish different validation error types. Built-in validation error ids start at 65536, so you should keep your custom ids under that value.

NewValidationError is referenced in 1 repository