Data sends an error with a message and json data to the client.
(ctx *context.Context, msg string, data interface{})
| 281 | |
| 282 | // Data sends an error with a message and json data to the client. |
| 283 | func (e ErrorCodeName) Data(ctx *context.Context, msg string, data interface{}) { |
| 284 | fail(ctx, e, msg, "", nil, data) |
| 285 | } |
| 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{}) { |
no test coverage detected