MCPcopy Create free account
hub / github.com/kataras/iris / Validation

Method Validation

x/errors/errors.go:293–295  ·  view source on GitHub ↗

Validation sends an error which renders the invalid fields to the client.

(ctx *context.Context, validationErrors ...ValidationError)

Source from the content-addressed store, hash-verified

291
292// Validation sends an error which renders the invalid fields to the client.
293func (e ErrorCodeName) Validation(ctx *context.Context, validationErrors ...ValidationError) {
294 e.validation(ctx, validationErrors)
295}
296
297func (e ErrorCodeName) validation(ctx *context.Context, validationErrors interface{}) {
298 fail(ctx, e, "validation failure", "fields were invalid", validationErrors, nil)

Callers 2

ErrMethod · 0.95
HandleErrorFunction · 0.80

Calls 1

validationMethod · 0.95

Tested by

no test coverage detected