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

Function NewMethodNotAllowed

errortypes.go:390–395  ·  view source on GitHub ↗

NewMethodNotAllowed returns an error which wraps err and satisfies Is(err, MethodNotAllowed) and the Locationer interface.

(err error, msg string)

Source from the content-addressed store, hash-verified

388// NewMethodNotAllowed returns an error which wraps err and satisfies
389// Is(err, MethodNotAllowed) and the Locationer interface.
390func NewMethodNotAllowed(err error, msg string) error {
391 return &errWithType{
392 error: newLocationError(wrapErrorWithMsg(err, msg), 1),
393 errType: MethodNotAllowed,
394 }
395}
396
397// Deprecated: IsMethodNotAllowed reports whether err is a MethodNotAllowed
398// error. Use Is(err, MethodNotAllowed)

Callers

nothing calls this directly

Calls 2

newLocationErrorFunction · 0.85
wrapErrorWithMsgFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…