MCPcopy Create free account
hub / github.com/The-Pocket/PocketFlow-Go / Unwrap

Method Unwrap

pocketflow.go:58–60  ·  view source on GitHub ↗

Unwrap allows PocketFlowError to work with errors.Is and errors.As.

()

Source from the content-addressed store, hash-verified

56
57// Unwrap allows PocketFlowError to work with errors.Is and errors.As.
58func (e *PocketFlowError) Unwrap() error {
59 return e.Cause
60}
61
62func newPocketFlowError(msg string, cause error) error {
63 return &PocketFlowError{Message: msg, Cause: cause}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected