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

Method Error

pocketflow.go:49–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47}
48
49func (e *PocketFlowError) Error() string {
50 if e.Cause != nil {
51 // Consider adding cause details depending on verbosity needs
52 return fmt.Sprintf("PocketFlow error: %s (caused by: %v)", e.Message, e.Cause)
53 }
54 return fmt.Sprintf("PocketFlow error: %s", e.Message)
55}
56
57// Unwrap allows PocketFlowError to work with errors.Is and errors.As.
58func (e *PocketFlowError) Unwrap() error {

Callers 1

Calls

no outgoing calls

Tested by 1