MCPcopy Create free account
hub / github.com/kataras/iris / Message

Method Message

x/errors/errors.go:273–275  ·  view source on GitHub ↗

Message sends an error with a simple message to the client.

(ctx *context.Context, format string, args ...interface{})

Source from the content-addressed store, hash-verified

271
272// Message sends an error with a simple message to the client.
273func (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.
278func (e ErrorCodeName) Details(ctx *context.Context, msg, details string, detailsArgs ...interface{}) {

Callers 2

ErrMethod · 0.95
LogErrMethod · 0.95

Calls 2

sprintfFunction · 0.85
failFunction · 0.70

Tested by

no test coverage detected