MCPcopy Create free account
hub / github.com/aeilang/httpz / SetInternal

Method SetInternal

error.go:44–47  ·  view source on GitHub ↗

SetInternal sets the internal error for the HTTPError.

(err error)

Source from the content-addressed store, hash-verified

42
43// SetInternal sets the internal error for the HTTPError.
44func (e *HTTPError) SetInternal(err error) *HTTPError {
45 e.Internal = err
46 return e
47}
48
49// Error returns the error message for the HTTPError.
50func (e *HTTPError) Error() string {

Callers 7

TestHTTPError_ErrorFunction · 0.95
BindPathParamsFunction · 0.80
BindQueryParamsFunction · 0.80
BindBodyFunction · 0.80
BindHeadersFunction · 0.80
TestHTTPError_UnwrapFunction · 0.80

Calls

no outgoing calls

Tested by 3

TestHTTPError_ErrorFunction · 0.76
TestHTTPError_UnwrapFunction · 0.64