MCPcopy
hub / github.com/gin-gonic/gin / SetType

Method SetType

errors.go:43–46  ·  view source on GitHub ↗

SetType sets the error's type.

(flags ErrorType)

Source from the content-addressed store, hash-verified

41
42// SetType sets the error's type.
43func (msg *Error) SetType(flags ErrorType) *Error {
44 msg.Type = flags
45 return msg
46}
47
48// SetMeta sets the error's meta data.
49func (msg *Error) SetMeta(data any) *Error {

Callers 4

TestErrorFunction · 0.95
TestContextTypedErrorFunction · 0.80
BindUriMethod · 0.80
MustBindWithMethod · 0.80

Calls

no outgoing calls

Tested by 2

TestErrorFunction · 0.76
TestContextTypedErrorFunction · 0.64