Message sends an error with a simple message to the client.
(ctx *context.Context, format string, args ...interface{})
| 271 | |
| 272 | // Message sends an error with a simple message to the client. |
| 273 | func (e ErrorCodeName) Message(ctx *context.Context, format string, args ...interface{}) { |
| 274 | fail(ctx, e, sprintf(format, args...), "", nil, nil) |
| 275 | } |
| 276 | |
| 277 | // Details sends an error with a message and details to the client. |
| 278 | func (e ErrorCodeName) Details(ctx *context.Context, msg, details string, detailsArgs ...interface{}) { |