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

Method Details

x/errors/errors.go:278–280  ·  view source on GitHub ↗

Details sends an error with a message and details to the client.

(ctx *context.Context, msg, details string, detailsArgs ...interface{})

Source from the content-addressed store, hash-verified

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{}) {
279 fail(ctx, e, msg, sprintf(details, detailsArgs...), nil, nil)
280}
281
282// Data sends an error with a message and json data to the client.
283func (e ErrorCodeName) Data(ctx *context.Context, msg string, data interface{}) {

Callers 6

insertFunction · 0.80
mainFunction · 0.80
fireCustomErrorCodeNameFunction · 0.80
InvalidArgumentMethod · 0.80
ReadPayloadFunction · 0.80
handleJSONErrorFunction · 0.80

Calls 2

sprintfFunction · 0.85
failFunction · 0.70

Tested by

no test coverage detected