Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorHandler ¶
type ErrorHandler struct { CustomGetMessage func(err validator.FieldError) string // contains filtered or unexported fields }
func NewErrorHandler ¶
func NewErrorHandler(ctx context.Context) ErrorHandler
func NewErrorHandlerWithCustomMessages ¶
func NewErrorHandlerWithCustomMessages(ctx context.Context, msgGetter func(err validator.FieldError) string) ErrorHandler
func (ErrorHandler) AddFieldErrorToResponse ¶
func (e ErrorHandler) AddFieldErrorToResponse(field string, message string) error
func (ErrorHandler) AddValidationsErrors ¶
func (e ErrorHandler) AddValidationsErrors(err error) error
Click to show internal directories.
Click to hide internal directories.