MCPcopy 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
521func (m *MyError) Error() string {
522 return m.Message
523}
524
525func ExampleHasType() {
526 myErr := &MyError{Message: "these are not the droids you're looking for"}

Callers 14

TestNewMethod · 0.45
TestErrorfMethod · 0.45
TestTraceMethod · 0.45
TestAnnotateMethod · 0.45
TestAnnotatefMethod · 0.45
TestDeferredAnnotatefMethod · 0.45
TestWrapMethod · 0.45
TestWrapOfNilMethod · 0.45
TestWrapfMethod · 0.45
TestWrapfOfNilMethod · 0.45
TestMaskMethod · 0.45
TestMaskfMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected