(ctx context.Context, err error)
| 60 | func (e *withSecondaryError) Unwrap() error { return e.cause } |
| 61 | |
| 62 | func encodeWithSecondaryError(ctx context.Context, err error) (string, []string, proto.Message) { |
| 63 | e := err.(*withSecondaryError) |
| 64 | enc := errbase.EncodeError(ctx, e.secondaryError) |
| 65 | return "", nil, &enc |
| 66 | } |
| 67 | |
| 68 | func decodeWithSecondaryError( |
| 69 | ctx context.Context, cause error, _ string, _ []string, payload proto.Message, |
nothing calls this directly
no test coverage detected
searching dependent graphs…