MCPcopy Create free account
hub / github.com/juju/errors / As

Method As

functions_test.go:427–435  ·  view source on GitHub ↗
(e any)

Source from the content-addressed store, hash-verified

425}
426
427func (c *complexErrorOther) As(e any) bool {
428 if ce, ok := e.(**complexError); ok {
429 *ce = &complexError{
430 Message: c.Message,
431 }
432 return true
433 }
434 return false
435}
436
437func (c *complexErrorOther) Error() string {
438 return c.Message

Callers 2

AsFunction · 0.80
AsTypeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected