()
| 47 | } |
| 48 | |
| 49 | func (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. |
| 58 | func (e *PocketFlowError) Unwrap() error { |
no outgoing calls