Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/juju/errors
/ Error
Method
Error
functions_test.go:521–523 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
519
}
520
521
func
(m *MyError) Error() string {
522
return
m.Message
523
}
524
525
func
ExampleHasType() {
526
myErr := &MyError{Message:
"these are not the droids you're looking for"
}
Callers
14
TestNew
Method · 0.45
TestErrorf
Method · 0.45
TestTrace
Method · 0.45
TestAnnotate
Method · 0.45
TestAnnotatef
Method · 0.45
TestDeferredAnnotatef
Method · 0.45
TestWrap
Method · 0.45
TestWrapOfNil
Method · 0.45
TestWrapf
Method · 0.45
TestWrapfOfNil
Method · 0.45
TestMask
Method · 0.45
TestMaskf
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected