MCPcopy Index your code
hub / github.com/go-errors/errors / ExampleNew

Function ExampleNew

error_test.go:241–244  ·  view source on GitHub ↗
(UnexpectedEOF error)

Source from the content-addressed store, hash-verified

239}
240
241func ExampleNew(UnexpectedEOF error) error {
242 // calling New attaches the current stacktrace to the existing UnexpectedEOF error
243 return New(UnexpectedEOF)
244}
245
246func ExampleWrap() error {
247

Callers

nothing calls this directly

Calls 1

NewFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…