MCPcopy
hub / github.com/google/gvisor / Error

Method Error

pkg/syserr/syserr.go:135–137  ·  view source on GitHub ↗

Error implements Error() for the error interface

()

Source from the content-addressed store, hash-verified

133
134// Error implements Error() for the error interface
135func (e *AnnotatedError) Error() string {
136 return fmt.Sprintf("%s: %s", e.error.String(), e.message)
137}
138
139// NewAnnotatedError creates a new AnnotatedError with the given error and message.
140func NewAnnotatedError(error *Error, message string) *AnnotatedError {

Callers 10

TestReverseFunction · 0.45
TestIndirectFunction · 0.45
TestSameFunction · 0.45
TestReverseNestedFunction · 0.45
TestReverseNestedDeeperFunction · 0.45
TestUnknownLockFunction · 0.45
addHostTranslationFunction · 0.45
FromHostFunction · 0.45
FromErrorFunction · 0.45
addHostTranslationFunction · 0.45

Calls 1

StringMethod · 0.65

Tested by 6

TestReverseFunction · 0.36
TestIndirectFunction · 0.36
TestSameFunction · 0.36
TestReverseNestedFunction · 0.36
TestReverseNestedDeeperFunction · 0.36
TestUnknownLockFunction · 0.36