(ctx *context.Context, validationErrors interface{})
| 295 | } |
| 296 | |
| 297 | func (e ErrorCodeName) validation(ctx *context.Context, validationErrors interface{}) { |
| 298 | fail(ctx, e, "validation failure", "fields were invalid", validationErrors, nil) |
| 299 | } |
| 300 | |
| 301 | // Err sends the error's text as a message to the client. |
| 302 | // In exception, if the given "err" is a type of validation error |