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

Function Forbiddenf

errortypes.go:405–410  ·  view source on GitHub ↗

Forbiddenf returns an error which satistifes Is(err, Forbidden) and the Locationer interface.

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

Source from the content-addressed store, hash-verified

403// Forbiddenf returns an error which satistifes Is(err, Forbidden) and the
404// Locationer interface.
405func Forbiddenf(format string, args ...interface{}) error {
406 return newLocationError(
407 makeWrappedConstError(Hide(Forbidden), format, args...),
408 1,
409 )
410}
411
412// NewForbidden returns an error which wraps err and satisfies
413// Is(err, Forbidden) 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…