please upgrade the proto package Error contains all Postgres wire protocol error fields. See https://www.postgresql.org/docs/current/static/protocol-error-fields.html for a list of all Postgres error fields, most of which are optional and can be used to provide auxiliary error information.
| 25 | // for a list of all Postgres error fields, most of which are optional and can |
| 26 | // be used to provide auxiliary error information. |
| 27 | type Error struct { |
| 28 | // standard pg error fields. This can be passed |
| 29 | // over the pg wire protocol. |
| 30 | Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` |
| 31 | Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` |
| 32 | Detail string `protobuf:"bytes,3,opt,name=detail,proto3" json:"detail,omitempty"` |
| 33 | Hint string `protobuf:"bytes,4,opt,name=hint,proto3" json:"hint,omitempty"` |
| 34 | Source *Error_Source `protobuf:"bytes,5,opt,name=source,proto3" json:"source,omitempty"` |
| 35 | // a telemetry key, used as telemetry counter name. |
| 36 | // Typically of the form [<prefix>.]#issuenum[.details] |
| 37 | // |
| 38 | // Note: this field is obsolete. It is preserved for compatibility |
| 39 | // with nodes running 19.1: |
| 40 | // |
| 41 | // - when an error with this field populated is received on a |
| 42 | // post-19.1 node, the field is replaced by uses of |
| 43 | // errors.WithTelemetryKey. This data is then subsequently used for |
| 44 | // troubleshooting reports and telemetry. |
| 45 | // - Conversely, errors sent towards a 19.1 node will get this field |
| 46 | // populated with the first key found in errors.GetTelemetryKeys(). |
| 47 | // |
| 48 | // TODO(knz): Remove in 19.3. |
| 49 | //TelemetryKey string `protobuf:"bytes,6,opt,name=telemetry_key,json=telemetryKey,proto3" json:"telemetry_key,omitempty"` |
| 50 | // complement to the detail field that can be reported |
| 51 | // in sentry reports. This is scrubbed of PII. |
| 52 | // |
| 53 | // Note: this field is obsolete. It is preserved for compatibility |
| 54 | // with nodes running 19.1: |
| 55 | // |
| 56 | // - when an error with this field populated is received on a |
| 57 | // post-19.1 node, the field is replaced by uses of |
| 58 | // errors.WithSafeDetail. This data is then subsequently used for |
| 59 | // troubleshooting reports. |
| 60 | // - Conversely, errors sent towards a 19.1 node will get this field |
| 61 | // populated with the data from errors.GetSafeDetails(). |
| 62 | // |
| 63 | // TODO(knz): Remove in 19.3. |
| 64 | SafeDetail []*Error_SafeDetail `protobuf:"bytes,7,rep,name=safe_detail,json=safeDetail,proto3" json:"safe_detail,omitempty"` |
| 65 | } |
| 66 | |
| 67 | func (m *Error) Reset() { *m = Error{} } |
| 68 | func (m *Error) String() string { return proto.CompactTextString(m) } |
nothing calls this directly
no outgoing calls
no test coverage detected