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

Method Error

errors.go:82–84  ·  errors.go::Error.Error

Error implements the error interface.

()

Source from the content-addressed store, hash-verified

80
81// Error implements the error interface.
82func (msg Error) Error() string {
83 return msg.Err.Error()
84}
85
86// IsType judges one error.
87func (msg *Error) IsType(flags ErrorType) bool {

Callers 15

TestErrorFunction · 0.95
JSONMethod · 0.95
TestPanicWithBrokenPipeFunction · 0.45
CustomRecoveryWithWriterFunction · 0.45
mustFunction · 0.45
TestContextResetFunction · 0.45
TestContextGetCookieFunction · 0.45
TestContextErrorFunction · 0.45

Calls

no outgoing calls

Tested by 15

TestErrorFunction · 0.76
TestPanicWithBrokenPipeFunction · 0.36
mustFunction · 0.36
TestContextResetFunction · 0.36
TestContextGetCookieFunction · 0.36
TestContextErrorFunction · 0.36
TestContextTypedErrorFunction · 0.36