NewMethodNotAllowed returns an error which wraps err and satisfies Is(err, MethodNotAllowed) and the Locationer interface.
(err error, msg string)
| 388 | // NewMethodNotAllowed returns an error which wraps err and satisfies |
| 389 | // Is(err, MethodNotAllowed) and the Locationer interface. |
| 390 | func 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) |
nothing calls this directly
no test coverage detected
searching dependent graphs…