DataWithDetails sends an error with a message, details and json data to the client.
(ctx *context.Context, msg, details string, data interface{})
| 286 | |
| 287 | // DataWithDetails sends an error with a message, details and json data to the client. |
| 288 | func (e ErrorCodeName) DataWithDetails(ctx *context.Context, msg, details string, data interface{}) { |
| 289 | fail(ctx, e, msg, details, nil, data) |
| 290 | } |
| 291 | |
| 292 | // Validation sends an error which renders the invalid fields to the client. |
| 293 | func (e ErrorCodeName) Validation(ctx *context.Context, validationErrors ...ValidationError) { |
no test coverage detected