MCPcopy
hub / github.com/labstack/echo / Wrap

Method Wrap

httperror.go:132–138  ·  view source on GitHub ↗

Wrap returns a new HTTPError with given errors wrapped inside

(err error)

Source from the content-addressed store, hash-verified

130
131// Wrap returns a new HTTPError with given errors wrapped inside
132func (he HTTPError) Wrap(err error) error {
133 return &HTTPError{
134 Code: he.Code,
135 Message: he.Message,
136 err: err,
137 }
138}
139
140func (he *HTTPError) Unwrap() error {
141 return he.err

Callers 14

TestHTTPError_WrapUnwrapFunction · 0.95
BindPathValuesFunction · 0.45
BindQueryParamsFunction · 0.45
BindBodyFunction · 0.45
BindHeadersFunction · 0.45
DeserializeMethod · 0.45
proxyHTTPFunction · 0.45
ToMiddlewareMethod · 0.45
ToMiddlewareMethod · 0.45
ToMiddlewareMethod · 0.45
TestKeyAuthWithConfigFunction · 0.45

Calls

no outgoing calls

Tested by 3

TestHTTPError_WrapUnwrapFunction · 0.76
TestKeyAuthWithConfigFunction · 0.36