Code returns the machine-branchable code (used by tests and middleware).
()
| 58 | |
| 59 | // Code returns the machine-branchable code (used by tests and middleware). |
| 60 | func (e *ErrorEnvelope) Code() string { return e.Err.Code } |
| 61 | |
| 62 | // NewError builds an envelope with an explicit machine-branchable code. |
| 63 | // Prefer this over the status-only helpers when the caller should be able |
no outgoing calls