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