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

Method IsType

errors.go:87–89  ·  view source on GitHub ↗

IsType judges one error.

(flags ErrorType)

Source from the content-addressed store, hash-verified

85
86// IsType judges one error.
87func (msg *Error) IsType(flags ErrorType) bool {
88 return (msg.Type & flags) > 0
89}
90
91// Unwrap returns the wrapped error, to allow interoperability with errors.Is(), errors.As() and errors.Unwrap()
92func (msg Error) Unwrap() error {

Callers 1

ByTypeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected