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

Method DataWithDetails

x/errors/errors.go:288–290  ·  view source on GitHub ↗

DataWithDetails sends an error with a message, details and json data to the client.

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

Source from the content-addressed store, hash-verified

286
287// DataWithDetails sends an error with a message, details and json data to the client.
288func (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.
293func (e ErrorCodeName) Validation(ctx *context.Context, validationErrors ...ValidationError) {

Callers 2

handleAPIErrorFunction · 0.80

Calls 1

failFunction · 0.70

Tested by

no test coverage detected