MCPcopy Create free account
hub / github.com/imroc/req / SetError

Function SetError

request_wrapper.go:113–115  ·  view source on GitHub ↗

SetError is a global wrapper methods which delegated to the default client, create a request and SetErrorResult for request. Deprecated: Use SetErrorResult instead.

(error any)

Source from the content-addressed store, hash-verified

111//
112// Deprecated: Use SetErrorResult instead.
113func SetError(error any) *Request {
114 return defaultClient.R().SetErrorResult(error)
115}
116
117// SetErrorResult is a global wrapper methods which delegated
118// to the default client, create a request and SetErrorResult for request.

Callers

nothing calls this directly

Calls 2

SetErrorResultMethod · 0.80
RMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…