Meta allows the error to carry additional information as key-value pairs. Protocol-specific headers and trailers may be removed to avoid breaking protocol semantics. For example, Content-Length and Content-Type headers won't be propagated. See the documentation for each protocol for more datails.
()
| 237 | // headers and the protocol-specific trailers (either HTTP trailers or in-body |
| 238 | // metadata). |
| 239 | func (e *Error) Meta() http.Header { |
| 240 | if e.meta == nil { |
| 241 | e.meta = make(http.Header) |
| 242 | } |
| 243 | return e.meta |
| 244 | } |
| 245 | |
| 246 | func (e *Error) detailsAsAny() []*anypb.Any { |
| 247 | anys := make([]*anypb.Any, 0, len(e.details)) |
no outgoing calls