Documentation ¶
Overview ¶
Package validate provides utilities for commonly-used validation purposes (e.g., for input validation).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ValidationError ¶
type ValidationError struct { ArgumentName string // contains filtered or unexported fields }
ValidationError represents a validation error that can be handled differently in recovery.
func NewValidationError ¶
func NewValidationError(err error, argumentName string) *ValidationError
NewValidationError creates a new validation error that can be handled differently in recovery. The parameter argumentName is optional.
func (*ValidationError) Error ¶
func (err *ValidationError) Error() (message string)
Click to show internal directories.
Click to hide internal directories.