MCPcopy Create free account
hub / github.com/juju/errors / BadRequestf

Function BadRequestf

errortypes.go:357–362  ·  view source on GitHub ↗

BadRequestf returns an error which satisfies Is(err, BadRequest) and the Locationer interface.

(format string, args ...interface{})

Source from the content-addressed store, hash-verified

355// BadRequestf returns an error which satisfies Is(err, BadRequest) and the
356// Locationer interface.
357func BadRequestf(format string, args ...interface{}) error {
358 return newLocationError(
359 makeWrappedConstError(Hide(BadRequest), format, args...),
360 1,
361 )
362}
363
364// NewBadRequest returns an error which wraps err and satisfies
365// Is(err, BadRequest) and the Locationer interface.

Callers

nothing calls this directly

Calls 3

newLocationErrorFunction · 0.85
makeWrappedConstErrorFunction · 0.85
HideFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…