Unwrap allows PocketFlowError to work with errors.Is and errors.As.
()
| 56 | |
| 57 | // Unwrap allows PocketFlowError to work with errors.Is and errors.As. |
| 58 | func (e *PocketFlowError) Unwrap() error { |
| 59 | return e.Cause |
| 60 | } |
| 61 | |
| 62 | func newPocketFlowError(msg string, cause error) error { |
| 63 | return &PocketFlowError{Message: msg, Cause: cause} |
nothing calls this directly
no outgoing calls
no test coverage detected