MCPcopy Index your code
hub / github.com/foxcpp/maddy / WithTemporary

Function WithTemporary

framework/exterrors/temporary.go:72–74  ·  view source on GitHub ↗

WithTemporary wraps the passed error object with the implementation of the Temporary() method that will return the specified value. Original error value can be obtained using errors.Unwrap.

(err error, temporary bool)

Source from the content-addressed store, hash-verified

70//
71// Original error value can be obtained using errors.Unwrap.
72func WithTemporary(err error, temporary bool) error {
73 return temporaryErr{err, temporary}
74}

Callers 3

AuthPlainMethod · 0.92
CheckBodyMethod · 0.92
CheckBodyMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected